| 1 | <?php |
||
| 17 | class JqueryExtension extends Extension |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @param array $configs |
||
| 21 | * @param ContainerBuilder $container |
||
| 22 | */ |
||
| 23 | public function load(array $configs, ContainerBuilder $container) |
||
| 24 | { |
||
| 25 | $processor = new Processor(); |
||
| 26 | $configuration = new Configuration(); |
||
| 27 | $config = $processor->processConfiguration($configuration, $configs); |
||
| 28 | $config['cdn'] = CdnHelper::createInstance()->filterCdn($config['cdn']); |
||
| 29 | $container->setParameter('jquery', $config); |
||
| 30 | $container->setParameter('jquery.local', $config['local']); |
||
| 31 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
| 32 | $loader->load('services.yml'); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function getAlias() |
||
| 42 | } |
||
| 43 |