diff options
| author | Igor Wiedler <igor@wiedler.ch> | 2012-09-01 19:17:01 +0200 |
|---|---|---|
| committer | Igor Wiedler <igor@wiedler.ch> | 2012-09-01 19:17:01 +0200 |
| commit | 282a80077d4630ba59043fffe59e8a7ce8619ecb (patch) | |
| tree | e2a9af2dd81160a52973034fc386a15075023eab /phpBB/includes/di/processor/ext.php | |
| parent | 7ed7b19a1f1c3732b561ec3c8a4a39f115b5e6ac (diff) | |
| download | forums-282a80077d4630ba59043fffe59e8a7ce8619ecb.tar forums-282a80077d4630ba59043fffe59e8a7ce8619ecb.tar.gz forums-282a80077d4630ba59043fffe59e8a7ce8619ecb.tar.bz2 forums-282a80077d4630ba59043fffe59e8a7ce8619ecb.tar.xz forums-282a80077d4630ba59043fffe59e8a7ce8619ecb.zip | |
[feature/dic] Spaces to tabs, add useless docblocks
Fully documents the constructors of the processors and the cron tasks.
PHPBB3-10739
Diffstat (limited to 'phpBB/includes/di/processor/ext.php')
| -rw-r--r-- | phpBB/includes/di/processor/ext.php | 47 |
1 files changed, 29 insertions, 18 deletions
diff --git a/phpBB/includes/di/processor/ext.php b/phpBB/includes/di/processor/ext.php index 04a586a086..e69a3d73b3 100644 --- a/phpBB/includes/di/processor/ext.php +++ b/phpBB/includes/di/processor/ext.php @@ -12,32 +12,43 @@ */ if (!defined('IN_PHPBB')) { - exit; + exit; } use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; +/** +* Load the service configurations from all extensions into the container. +*/ class phpbb_di_processor_ext implements phpbb_di_processor_interface { - private $extension_manager; + private $extension_manager; - public function __construct($extension_manager) - { - $this->extension_manager = $extension_manager; - } + /** + * Constructor. + * + * @param string $extension_manager The extension manager + */ + public function __construct($extension_manager) + { + $this->extension_manager = $extension_manager; + } - public function process(ContainerBuilder $container) - { - $enabled_exts = $this->extension_manager->all_enabled(); - foreach ($enabled_exts as $name => $path) - { - if (file_exists($path . '/config/services.yml')) - { - $loader = new YamlFileLoader($container, new FileLocator($path . '/config')); - $loader->load('services.yml'); - } - } - } + /** + * @inheritdoc + */ + public function process(ContainerBuilder $container) + { + $enabled_exts = $this->extension_manager->all_enabled(); + foreach ($enabled_exts as $name => $path) + { + if (file_exists($path . '/config/services.yml')) + { + $loader = new YamlFileLoader($container, new FileLocator($path . '/config')); + $loader->load('services.yml'); + } + } + } } |
