Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 740 Bytes
<?php
namespace Kelu95\ApcBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class ApcExtension extends Extension
{
public function load(array $config, ContainerBuilder $container)
{
if (!$container->hasDefinition('apc_cache'))
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('apc_cache_services.xml');
}
}
public function getAlias()
{
return 'apc';
}
}
Something went wrong with that request. Please try again.