11<?php
22
3- /**
3+ /*
44 * This file is part of the BazingaGeocoderBundle package.
55 * For the full copyright and license information, please view the LICENSE
66 * file that was distributed with this source code.
77 *
88 * @license MIT License
99 */
10+
1011namespace Bazinga \Bundle \GeocoderBundle \DependencyInjection ;
1112
1213use Bazinga \Bundle \GeocoderBundle \ProviderFactory \ProviderFactoryInterface ;
1314use Geocoder \Provider \Cache \ProviderCache ;
1415use Geocoder \Provider \Provider ;
15- use Symfony \Component \DependencyInjection \Loader \YamlFileLoader ;
16- use Symfony \Component \HttpKernel \DependencyInjection \Extension ;
17- use Symfony \Component \DependencyInjection \Loader \XmlFileLoader ;
16+ use Symfony \Component \Config \Definition \Processor ;
17+ use Symfony \Component \Config \FileLocator ;
1818use Symfony \Component \DependencyInjection \ContainerBuilder ;
19- use Symfony \Component \DependencyInjection \Definition ;
19+ use Symfony \Component \DependencyInjection \Loader \ YamlFileLoader ;
2020use Symfony \Component \DependencyInjection \Reference ;
21- use Symfony \Component \Config \FileLocator ;
22- use Symfony \Component \Config \Definition \Processor ;
21+ use Symfony \Component \HttpKernel \DependencyInjection \Extension ;
2322
2423/**
2524 * William Durand <william.durand1@gmail.com>.
@@ -46,7 +45,7 @@ public function load(array $configs, ContainerBuilder $container)
4645
4746 $ tag = current ($ definition ->getTag ('kernel.event_listener ' ));
4847 $ tag ['priority ' ] = $ config ['fake_ip ' ]['priority ' ];
49- $ tags = array ( 'kernel.event_listener ' => array ( $ tag)) ;
48+ $ tags = [ 'kernel.event_listener ' => [ $ tag]] ;
5049 $ definition ->setTags ($ tags );
5150 } else {
5251 $ container ->removeDefinition ('bazinga_geocoder.event_listener.fake_request ' );
@@ -85,7 +84,7 @@ private function loadProviders(ContainerBuilder $container, array $config)
8584 *
8685 * @param ContainerBuilder $
8786 * @param string $serviceId
88- * @param array $providerConfig
87+ * @param array $providerConfig
8988 */
9089 private function configureCache (ContainerBuilder $ container , string $ serviceId , array $ providerConfig )
9190 {
@@ -109,7 +108,7 @@ private function configureCache(ContainerBuilder $container, string $serviceId,
109108 ->setArguments ([
110109 new Reference ($ serviceId .'.cache.inner ' ),
111110 new Reference ($ cacheServiceId ),
112- $ providerConfig ['cache_lifetime ' ]
111+ $ providerConfig ['cache_lifetime ' ],
113112 ]);
114113 }
115114
0 commit comments