forked from nowiko/AliceBundle
-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
82 changed files
with
537 additions
and
1,049 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 |
---|---|---|
|
@@ -15,20 +15,15 @@ | |
|
||
use Fidry\AliceDataFixtures\LoaderInterface as DataFixturesLoaderInterface; | ||
use Fidry\AliceDataFixtures\Persistence\PurgeMode; | ||
use function func_get_args; | ||
use Hautelook\AliceBundle\NotCallableTrait; | ||
|
||
/** | ||
* @author Théo FIDRY <[email protected]> | ||
*/ | ||
class FakeLoader implements DataFixturesLoaderInterface | ||
{ | ||
use NotCallableTrait; | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function load(array $fixturesFiles, array $parameters = [], array $objects = [], PurgeMode $purgeMode = null): array | ||
{ | ||
$this->__call(__METHOD__, \func_get_args()); | ||
$this->__call(__METHOD__, func_get_args()); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -15,17 +15,12 @@ | |
|
||
use Fidry\AliceDataFixtures\Persistence\PersisterAwareInterface; | ||
use Fidry\AliceDataFixtures\Persistence\PersisterInterface; | ||
use function func_get_args; | ||
|
||
/** | ||
* @author Théo FIDRY <[email protected]> | ||
*/ | ||
class FakeLoaderPersisterAware extends FakeLoader implements PersisterAwareInterface | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function withPersister(PersisterInterface $persister) | ||
public function withPersister(PersisterInterface $persister): self | ||
{ | ||
$this->__call(__METHOD__, \func_get_args()); | ||
$this->__call(__METHOD__, func_get_args()); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -13,21 +13,16 @@ | |
|
||
namespace Hautelook\AliceBundle\FixtureLocator; | ||
|
||
use function func_get_args; | ||
use Hautelook\AliceBundle\FixtureLocatorInterface; | ||
use Hautelook\AliceBundle\NotCallableTrait; | ||
|
||
/** | ||
* @author Théo FIDRY <[email protected]> | ||
*/ | ||
class FakeFixtureLocator implements FixtureLocatorInterface | ||
{ | ||
use NotCallableTrait; | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function locateFiles(array $bundles, string $environment): array | ||
{ | ||
$this->__call(__METHOD__, \func_get_args()); | ||
$this->__call(__METHOD__, func_get_args()); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -19,16 +19,13 @@ | |
use Symfony\Component\HttpKernel\Bundle\Bundle; | ||
use Symfony\Component\HttpKernel\Kernel; | ||
|
||
/** | ||
* @author Théo FIDRY <[email protected]> | ||
*/ | ||
class ConfigurableKernel extends Kernel | ||
{ | ||
private $addedBundles = []; | ||
|
||
/** | ||
* {@inheritdoc} | ||
* @var list<Bundle> | ||
*/ | ||
private array $addedBundles = []; | ||
|
||
public function registerBundles(): iterable | ||
{ | ||
return array_merge( | ||
|
@@ -47,11 +44,8 @@ public function addBundle(Bundle $bundle): self | |
return $this; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function registerContainerConfiguration(LoaderInterface $loader) | ||
public function registerContainerConfiguration(LoaderInterface $loader): void | ||
{ | ||
$loader->load(__DIR__.'/config/config.yml'); | ||
$loader->load(__DIR__.'/config/config.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,6 @@ | |
|
||
use Symfony\Component\HttpKernel\Bundle\Bundle; | ||
|
||
/** | ||
* @author Théo FIDRY <[email protected]> | ||
*/ | ||
class SimpleBundle extends Bundle | ||
{ | ||
} |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -17,14 +17,8 @@ | |
use Symfony\Component\Config\Loader\LoaderInterface; | ||
use Symfony\Component\HttpKernel\Kernel; | ||
|
||
/** | ||
* @author Théo FIDRY <[email protected]> | ||
*/ | ||
class SimpleKernel extends Kernel | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function registerBundles(): iterable | ||
{ | ||
return [ | ||
|
File renamed without changes.
File renamed without changes.
29 changes: 0 additions & 29 deletions
29
fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/AEnv/DataLoader.php
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/BEnv/DataLoader.php
This file was deleted.
Oops, something went wrong.
File renamed without changes.
32 changes: 0 additions & 32 deletions
32
fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/DEnv/DataLoader.php
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
27 changes: 0 additions & 27 deletions
27
fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/EEnv/DataLoader.php
This file was deleted.
Oops, something went wrong.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/data-loader.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include: | ||
- '@TestABundle/Resources/fixtures/aentity.yaml' | ||
- '@TestBBundle/Resources/fixtures/bentity.yaml' |
3 changes: 0 additions & 3 deletions
3
fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/data-loader.yml
This file was deleted.
Oops, something went wrong.
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
42 changes: 0 additions & 42 deletions
42
fixtures/Functional/TestBundle/DataFixtures/Processor/BrandProcessor.php
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
|
@@ -25,9 +25,6 @@ | |
use Symfony\Component\Config\Loader\LoaderInterface; | ||
use Symfony\Component\HttpKernel\Kernel; | ||
|
||
/** | ||
* @author Théo FIDRY <[email protected]> | ||
*/ | ||
class TestKernel extends Kernel | ||
{ | ||
public function registerBundles(): iterable | ||
|
@@ -45,9 +42,9 @@ public function registerBundles(): iterable | |
]; | ||
} | ||
|
||
public function registerContainerConfiguration(LoaderInterface $loader) | ||
public function registerContainerConfiguration(LoaderInterface $loader): void | ||
{ | ||
$loader->load(__DIR__.'/config/config.yml'); | ||
$loader->load(__DIR__.'/config/doctrine.yml'); | ||
$loader->load(__DIR__.'/config/config.yaml'); | ||
$loader->load(__DIR__.'/config/doctrine.yaml'); | ||
} | ||
} |
Oops, something went wrong.