1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[feature/dic] Make use of calls to cut down on boilerplate

PHPBB3-10739
This commit is contained in:
Igor Wiedler
2012-03-31 21:20:58 +02:00
parent a7f61b91b7
commit dc9ccc432c
4 changed files with 11 additions and 17 deletions

View File

@@ -88,15 +88,11 @@ $container->setParameter('core.root_path', $phpbb_root_path);
$container->setParameter('core.php_ext', $phpEx);
$container->setAlias('cache.driver.install', 'cache.driver');
$phpbb_class_loader_ext = $container->get('class_loader.ext');
$phpbb_class_loader_ext->register();
$phpbb_class_loader = $container->get('class_loader');
$phpbb_class_loader->register();
$phpbb_class_loader_ext = $container->get('class_loader.ext');
// set up caching
$cache = $container->get('cache');
$phpbb_class_loader_ext->set_cache($container->get('cache.driver'));
$phpbb_class_loader->set_cache($container->get('cache.driver'));
$phpbb_dispatcher = $container->get('dispatcher');
$request = $container->get('request');