-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from maximehuran/feature/update-requirements
Update requirements to be compatible with Sylius 1.9
- Loading branch information
Showing
96 changed files
with
712 additions
and
1,061 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Security | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
|
||
security: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [7.4] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
run: | | ||
sudo update-alternatives --set php /usr/bin/php${{ matrix.php }} | ||
echo "date.timezone=UTC" | sudo tee /etc/php/${{ matrix.php }}/cli/conf.d/timezone.ini | ||
echo "${{ matrix.php }}" > .php-version | ||
- uses: actions/cache@v1 | ||
id: cache-composer | ||
with: | ||
path: /home/runner/.composer/cache | ||
key: composer2-php:${{ matrix.php }}-${{ github.sha }} | ||
restore-keys: composer2-php:${{ matrix.php }}- | ||
|
||
- run: mkdir -p /home/runner/.composer/cache | ||
if: steps.cache-composer.outputs.cache-hit != 'true' | ||
|
||
- name: Composer v2 | ||
run: sudo composer self-update --2 | ||
|
||
- name: Composer Github Auth | ||
run: composer config -g github-oauth.github.com ${{ github.token }} | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Install PHP dependencies | ||
run: composer update --prefer-dist | ||
|
||
- uses: symfonycorp/security-checker-action@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Monsieur Biz' Homepage plugin for Sylius. | ||
* | ||
* (c) Monsieur Biz <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace MonsieurBiz\SyliusHomepagePlugin\Fixture\Factory; | ||
|
||
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface; | ||
|
||
interface HomepageFixtureFactoryInterface extends ExampleFactoryInterface | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of Monsieur Biz' Homepage plugin for Sylius. | ||
* | ||
* (c) Monsieur Biz <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace MonsieurBiz\SyliusHomepagePlugin\Migrations; | ||
|
||
use Doctrine\DBAL\Schema\Schema; | ||
use Doctrine\Migrations\AbstractMigration; | ||
|
||
/** | ||
* Auto-generated Migration: Please modify to your needs! | ||
*/ | ||
final class Version20210311135118 extends AbstractMigration | ||
{ | ||
public function getDescription(): string | ||
{ | ||
return ''; | ||
} | ||
|
||
public function up(Schema $schema): void | ||
{ | ||
// this up() migration is auto-generated, please modify it to your needs | ||
$this->addSql('CREATE TABLE monsieurbiz_homepage_homepage (id INT AUTO_INCREMENT NOT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); | ||
$this->addSql('CREATE TABLE monsieurbiz_homepage_homepage_channels (page_id INT NOT NULL, channel_id INT NOT NULL, INDEX IDX_1BF0DD4EC4663E4 (page_id), UNIQUE INDEX UNIQ_1BF0DD4E72F5A1AA (channel_id), PRIMARY KEY(page_id, channel_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); | ||
$this->addSql('CREATE TABLE monsieurbiz_homepage_homepage_translation (id INT AUTO_INCREMENT NOT NULL, translatable_id INT NOT NULL, name VARCHAR(255) DEFAULT NULL, content LONGTEXT DEFAULT NULL, metaTitle VARCHAR(255) DEFAULT NULL, metaKeywords VARCHAR(255) DEFAULT NULL, metaDescription LONGTEXT DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, INDEX IDX_F0076BB22C2AC5D3 (translatable_id), UNIQUE INDEX monsieurbiz_homepage_homepage_translation_uniq_trans (translatable_id, locale), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); | ||
$this->addSql('ALTER TABLE monsieurbiz_homepage_homepage_channels ADD CONSTRAINT FK_1BF0DD4EC4663E4 FOREIGN KEY (page_id) REFERENCES monsieurbiz_homepage_homepage (id)'); | ||
$this->addSql('ALTER TABLE monsieurbiz_homepage_homepage_channels ADD CONSTRAINT FK_1BF0DD4E72F5A1AA FOREIGN KEY (channel_id) REFERENCES sylius_channel (id)'); | ||
$this->addSql('ALTER TABLE monsieurbiz_homepage_homepage_translation ADD CONSTRAINT FK_F0076BB22C2AC5D3 FOREIGN KEY (translatable_id) REFERENCES monsieurbiz_homepage_homepage (id) ON DELETE CASCADE'); | ||
} | ||
|
||
public function down(Schema $schema): void | ||
{ | ||
// this down() migration is auto-generated, please modify it to your needs | ||
$this->addSql('ALTER TABLE monsieurbiz_homepage_homepage_channels DROP FOREIGN KEY FK_1BF0DD4EC4663E4'); | ||
$this->addSql('ALTER TABLE monsieurbiz_homepage_homepage_translation DROP FOREIGN KEY FK_F0076BB22C2AC5D3'); | ||
$this->addSql('DROP TABLE monsieurbiz_homepage_homepage'); | ||
$this->addSql('DROP TABLE monsieurbiz_homepage_homepage_channels'); | ||
$this->addSql('DROP TABLE monsieurbiz_homepage_homepage_translation'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
doctrine_migrations: | ||
migrations_paths: | ||
'MonsieurBiz\SyliusHomepagePlugin\Migrations': "@MonsieurBizSyliusHomepagePlugin/Migrations" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
imports: | ||
- { resource: 'app/doctrine_migrations.yaml' } | ||
- { resource: "sylius/fixtures.yaml" } | ||
- { resource: "sylius/grid.yaml" } | ||
- { resource: "sylius/resources.yaml" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.