-
Notifications
You must be signed in to change notification settings - Fork 339
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
1 parent
3a16cac
commit 17588d3
Showing
27 changed files
with
177 additions
and
172 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/.php_cs | ||
/.php_cs.cache | ||
|
||
/app/config/parameters.yml | ||
|
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 |
---|---|---|
|
@@ -12,11 +12,9 @@ | |
declare(strict_types=1); | ||
|
||
use Sylius\Bundle\CoreBundle\Application\Kernel; | ||
use Symfony\Component\Config\Loader\LoaderInterface; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
|
||
/** | ||
* @author Paweł Jędrzejewski <[email protected]> | ||
* @author Gonzalo Vilaseca <[email protected]> | ||
*/ | ||
class AppKernel extends Kernel | ||
{ | ||
/** | ||
|
@@ -40,4 +38,19 @@ public function registerBundles(): array | |
|
||
return array_merge(parent::registerBundles(), $bundles); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function registerContainerConfiguration(LoaderInterface $loader): void | ||
{ | ||
$loader->load(function (ContainerBuilder $container) { | ||
$container->setParameter('container.autowiring.strict_mode', true); | ||
$container->setParameter('container.dumper.inline_class_loader', true); | ||
|
||
$container->addObjectResource($this); | ||
}); | ||
|
||
parent::registerContainerConfiguration($loader); | ||
} | ||
} |
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,9 +17,6 @@ | |
use PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer; | ||
use Symfony\Component\DependencyInjection\ContainerInterface; | ||
|
||
/** | ||
* @author Kamil Kokot <[email protected]> | ||
*/ | ||
class TestAppKernel extends AppKernel | ||
{ | ||
/** | ||
|
@@ -43,7 +40,7 @@ public function shutdown(): void | |
} | ||
|
||
/** | ||
* Remove all container references from all loaded services | ||
* Remove all container references from all loaded services. | ||
* | ||
* @param ContainerInterface $container | ||
*/ | ||
|
@@ -55,7 +52,7 @@ protected function cleanupContainer(ContainerInterface $container): void | |
|
||
$services = $containerServicesPropertyReflection->getValue($container) ?: []; | ||
foreach ($services as $serviceId => $service) { | ||
if (in_array($serviceId, $this->getServicesToIgnoreDuringContainerCleanup())) { | ||
if (in_array($serviceId, $this->getServicesToIgnoreDuringContainerCleanup(), true)) { | ||
continue; | ||
} | ||
|
||
|
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
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
Oops, something went wrong.