@@ -14,9 +14,7 @@ |
||
14 | 14 | use Sylius\Bundle\ResourceBundle\DependencyInjection\Extension\AbstractResourceExtension; |
15 | 15 | use Symfony\Component\Config\FileLocator; |
16 | 16 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
17 | -use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
|
18 | 17 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
19 | -use Symfony\Component\DependencyInjection\Reference; |
|
20 | 18 | |
21 | 19 | /** |
22 | 20 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -33,7 +33,8 @@ |
||
33 | 33 | /** |
34 | 34 | * @param ContainerInterface $container |
35 | 35 | */ |
36 | - public function __construct(ContainerInterface $container) { |
|
36 | + public function __construct(ContainerInterface $container) |
|
37 | + { |
|
37 | 38 | $this->container = $container; |
38 | 39 | } |
39 | 40 |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | 'translation' => [ |
42 | 42 | 'classes' => [ |
43 | 43 | 'model' => BookTranslation::class, |
44 | - ], |
|
44 | + ], |
|
45 | 45 | ], |
46 | 46 | ], |
47 | 47 | ], |
@@ -73,18 +73,18 @@ discard block |
||
73 | 73 | * @test |
74 | 74 | */ |
75 | 75 | public function it_registers_default_translation_parameters() |
76 | - { |
|
77 | - // TODO: Move ResourceGrid integration to a dedicated compiler pass |
|
78 | - $this->setParameter('kernel.bundles', []); |
|
76 | + { |
|
77 | + // TODO: Move ResourceGrid integration to a dedicated compiler pass |
|
78 | + $this->setParameter('kernel.bundles', []); |
|
79 | 79 | |
80 | - $this->load([ |
|
81 | - 'translation' => [ |
|
82 | - 'locale_provider' => 'test.custom_locale_provider' |
|
83 | - ] |
|
84 | - ]); |
|
80 | + $this->load([ |
|
81 | + 'translation' => [ |
|
82 | + 'locale_provider' => 'test.custom_locale_provider' |
|
83 | + ] |
|
84 | + ]); |
|
85 | 85 | |
86 | - $this->assertContainerBuilderHasAlias('sylius.translation_locale_provider', 'test.custom_locale_provider'); |
|
87 | - } |
|
86 | + $this->assertContainerBuilderHasAlias('sylius.translation_locale_provider', 'test.custom_locale_provider'); |
|
87 | + } |
|
88 | 88 | |
89 | 89 | /** |
90 | 90 | * {@inheritdoc} |
@@ -73,7 +73,7 @@ |
||
73 | 73 | * @test |
74 | 74 | */ |
75 | 75 | public function it_registers_default_translation_parameters() |
76 | - { |
|
76 | + { |
|
77 | 77 | // TODO: Move ResourceGrid integration to a dedicated compiler pass |
78 | 78 | $this->setParameter('kernel.bundles', []); |
79 | 79 |