@@ -91,6 +91,6 @@ |
||
| 91 | 91 | |
| 92 | 92 | <info>php %command.full_name% web --symlink --relative</info> |
| 93 | 93 | |
| 94 | -EOT; |
|
| 94 | +eot; |
|
| 95 | 95 | } |
| 96 | 96 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 72 | 72 | $locales = $this->loadFixturesFromFile('resources/locales.yml'); |
| 73 | 73 | |
| 74 | - $this->client->request('GET', '/api/v1/locales/'.$locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 74 | + $this->client->request('GET', '/api/v1/locales/' . $locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 75 | 75 | |
| 76 | 76 | $response = $this->client->getResponse(); |
| 77 | 77 | $this->assertResponse($response, 'locale/show_response', Response::HTTP_OK); |
@@ -157,12 +157,12 @@ discard block |
||
| 157 | 157 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 158 | 158 | $locales = $this->loadFixturesFromFile('resources/locales.yml'); |
| 159 | 159 | |
| 160 | - $this->client->request('DELETE', '/api/v1/locales/'.$locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithContentType, []); |
|
| 160 | + $this->client->request('DELETE', '/api/v1/locales/' . $locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithContentType, []); |
|
| 161 | 161 | |
| 162 | 162 | $response = $this->client->getResponse(); |
| 163 | 163 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
| 164 | 164 | |
| 165 | - $this->client->request('GET', '/api/v1/locales/'.$locales['locale_en']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 165 | + $this->client->request('GET', '/api/v1/locales/' . $locales['locale_en']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
| 166 | 166 | |
| 167 | 167 | $response = $this->client->getResponse(); |
| 168 | 168 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -91,6 +91,6 @@ |
||
| 91 | 91 | |
| 92 | 92 | <info>php %command.full_name% web --symlink --relative</info> |
| 93 | 93 | |
| 94 | -EOT; |
|
| 94 | +eot; |
|
| 95 | 95 | } |
| 96 | 96 | } |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
| 115 | 115 | $countries = $this->loadFixturesFromFile('resources/countries.yml'); |
| 116 | 116 | |
| 117 | - $this->client->request('GET', '/api/v1/countries/'.$countries['country_NL']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 117 | + $this->client->request('GET', '/api/v1/countries/' . $countries['country_NL']->getCode(), [], [], static::$authorizedHeaderWithAccept); |
|
| 118 | 118 | |
| 119 | 119 | $response = $this->client->getResponse(); |
| 120 | 120 | $this->assertResponse($response, 'country/show_response', Response::HTTP_OK); |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function load(array $config, ContainerBuilder $container) |
| 30 | 30 | { |
| 31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 32 | 32 | $loader->load('services.xml'); |
| 33 | 33 | $loader->load('twig.xml'); |
| 34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function load(array $config, ContainerBuilder $container) |
| 30 | 30 | { |
| 31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 32 | 32 | $loader->load('services.xml'); |
| 33 | 33 | $loader->load('twig.xml'); |
| 34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function load(array $config, ContainerBuilder $container) |
| 30 | 30 | { |
| 31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 32 | 32 | $loader->load('services.xml'); |
| 33 | 33 | $loader->load('twig.xml'); |
| 34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function load(array $config, ContainerBuilder $container) |
| 30 | 30 | { |
| 31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 32 | 32 | $loader->load('services.xml'); |
| 33 | 33 | $loader->load('twig.xml'); |
| 34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function load(array $config, ContainerBuilder $container) |
| 30 | 30 | { |
| 31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 32 | 32 | $loader->load('services.xml'); |
| 33 | 33 | $loader->load('twig.xml'); |
| 34 | 34 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function load(array $config, ContainerBuilder $container) |
| 30 | 30 | { |
| 31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 32 | 32 | $loader->load('services.xml'); |
| 33 | 33 | $loader->load('twig.xml'); |
| 34 | 34 | } |
@@ -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]> |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | */ |
| 29 | 29 | public function load(array $config, ContainerBuilder $container) |
| 30 | 30 | { |
| 31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 32 | 32 | $loader->load('services.xml'); |
| 33 | 33 | $loader->load('twig.xml'); |
| 34 | 34 | } |