diff options
author | Igor Wiedler <igor@wiedler.ch> | 2013-01-02 04:04:01 +0100 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2013-01-02 06:41:35 +0100 |
commit | ea24de8de3e4f451aa4394f0f46d6955ccb671c2 (patch) | |
tree | 383da1a1e3b825315c41c57e38b9648dcd720f1b /phpBB/download | |
parent | 53c4257bfa68ca3962c2b47a6ba15a060861124b (diff) | |
download | forums-ea24de8de3e4f451aa4394f0f46d6955ccb671c2.tar forums-ea24de8de3e4f451aa4394f0f46d6955ccb671c2.tar.gz forums-ea24de8de3e4f451aa4394f0f46d6955ccb671c2.tar.bz2 forums-ea24de8de3e4f451aa4394f0f46d6955ccb671c2.tar.xz forums-ea24de8de3e4f451aa4394f0f46d6955ccb671c2.zip |
[ticket/11306] Introduce phpbb_create_default_container
Extracts default container construction to factory function, removing
boilerplate duplication for container construction.
PHPBB3-11306
Diffstat (limited to 'phpBB/download')
-rw-r--r-- | phpBB/download/file.php | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 8c282e36d7..4a392b002d 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -56,18 +56,7 @@ if (isset($_GET['avatar'])) $phpbb_class_loader_ext->register(); // Set up container - $phpbb_container = phpbb_create_dumped_container_unless_debug( - array( - new phpbb_di_extension_config($phpbb_root_path . 'config.' . $phpEx), - new phpbb_di_extension_core($phpbb_root_path), - ), - array( - new phpbb_di_pass_collection_pass(), - new phpbb_di_pass_kernel_pass(), - ), - $phpbb_root_path, - $phpEx - ); + $phpbb_container = phpbb_create_default_container($phpbb_root_path, $phpEx); $phpbb_class_loader->set_cache($phpbb_container->get('cache.driver')); $phpbb_class_loader_ext->set_cache($phpbb_container->get('cache.driver')); |