Skip to content

Commit

Permalink
Merge pull request #8 from fouadSalkini/add-sf7-support
Browse files Browse the repository at this point in the history
Added Symfony 7.0 support
  • Loading branch information
evotodi authored Jan 3, 2024
2 parents a6fbe76 + 716b0fd commit 19c1c54
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 25 deletions.
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
],
"require": {
"php": "^8",
"symfony/framework-bundle": "^6.0",
"symfony/console": "^6.0",
"symfony/finder": "^6.0",
"symfony/framework-bundle": "^6.0|^7.0",
"symfony/console": "^6.0|^7.0",
"symfony/finder": "^6.0|^7.0",
"doctrine/doctrine-bundle": "^2.0",
"doctrine/orm": "^2.0",
"symfony/yaml": "^6.0",
"symfony/doctrine-bridge": "^6.0",
"symfony/yaml": "^6.0|^7.0",
"symfony/doctrine-bridge": "^6.0|^7.0",
"webmozart/glob": "^4.5"
},
"require-dev": {
"symfony/config": "^6.0",
"symfony/dependency-injection": "^6.0",
"symfony/phpunit-bridge": "^6.0"
"symfony/config": "^6.0|^7.0",
"symfony/dependency-injection": "^6.0|^7.0",
"symfony/phpunit-bridge": "^6.0|^7.0"

},
"autoload": {
Expand Down
24 changes: 12 additions & 12 deletions example/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
"ext-ctype": "*",
"ext-iconv": "*",
"evotodi/seed-bundle": "dev-master",
"sensio/framework-extra-bundle": "^6.0",
"symfony/asset": "^6.0",
"symfony/console": "^6.0",
"symfony/dotenv": "^6.0",
"sensio/framework-extra-bundle": "^6.0|^7.0",
"symfony/asset": "^6.0|^7.0",
"symfony/console": "^6.0|^7.0",
"symfony/dotenv": "^6.0|^7.0",
"symfony/flex": "^1.0",
"symfony/framework-bundle": "^6.0",
"symfony/property-access": "^6.0",
"symfony/yaml": "^6.0",
"symfony/framework-bundle": "^6.0|^7.0",
"symfony/property-access": "^6.0|^7.0",
"symfony/yaml": "^6.0|^7.0",
"doctrine/doctrine-bundle": "^2.0",
"doctrine/orm": "^2.8"
},
"require-dev": {
"symfony/debug-bundle": "^6.0",
"symfony/debug-bundle": "^6.0|^7.0",
"symfony/maker-bundle": "^1.0",
"symfony/stopwatch": "^6.0",
"symfony/var-dumper": "^6.0",
"symfony/web-profiler-bundle": "^6.0"
"symfony/stopwatch": "^6.0|^7.0",
"symfony/var-dumper": "^6.0|^7.0",
"symfony/web-profiler-bundle": "^6.0|^7.0"
},
"config": {
"preferred-install": {
Expand Down Expand Up @@ -68,7 +68,7 @@
"extra": {
"symfony": {
"allow-contrib": true,
"require": "^6.0",
"require": "^6.0|^7.0",
"docker": false
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Compiler/SeedPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SeedPass implements CompilerPassInterface
/**
* @throws InvalidSeedNameException
*/
public function process(ContainerBuilder $container)
public function process(ContainerBuilder $container): void
{
if (!$container->has('seed.registry')) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/EvotodiSeedExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class EvotodiSeedExtension extends Extension
/**
* @throws Exception
*/
public function load(array $configs, ContainerBuilder $container)
public function load(array $configs, ContainerBuilder $container): void
{
$container->registerForAutoconfiguration(SeedInterface::class)->addTag('seed.seed');

Expand Down
4 changes: 2 additions & 2 deletions src/EvotodiSeedBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public function getContainerExtension(): ?ExtensionInterface
return $this->extension;
}

public function build(ContainerBuilder $container)
{
public function build(ContainerBuilder $container): void
{
$this->container = $container;

parent::build($container);
Expand Down
3 changes: 2 additions & 1 deletion tests/App/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ framework:
doctrine:
dbal:
memory: true
orm: ~
orm:
enable_lazy_ghost_objects: true
services:
Evotodi\SeedBundle\Tests\fixtures\:
resource: '../fixtures/*'
Expand Down
4 changes: 4 additions & 0 deletions tests/SeedCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?php

namespace Evotodi\SeedBundle\Tests;

use Evotodi\SeedBundle\Core\SeedRegistry;
use Generator;
use InvalidArgumentException;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Console\Exception\CommandNotFoundException;
Expand Down

0 comments on commit 19c1c54

Please sign in to comment.