mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[feature/dic] Introduce DI processors instead of abusing compiler passes
PHPBB3-10739
This commit is contained in:
@@ -15,12 +15,13 @@ if (!defined('IN_PHPBB'))
|
||||
exit;
|
||||
}
|
||||
|
||||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
class phpbb_di_compiler_config_pass implements CompilerPassInterface
|
||||
class phpbb_di_processor_config implements phpbb_di_processor_interface
|
||||
{
|
||||
private $config_file;
|
||||
private $phpbb_root_path;
|
||||
private $php_ext;
|
||||
|
||||
public function __construct($config_file, $phpbb_root_path, $php_ext)
|
||||
{
|
23
phpBB/includes/di/processor/interface.php
Normal file
23
phpBB/includes/di/processor/interface.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package phpBB3
|
||||
* @copyright (c) 2012 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
if (!defined('IN_PHPBB'))
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
interface phpbb_di_processor_interface
|
||||
{
|
||||
public function process(ContainerBuilder $container);
|
||||
}
|
Reference in New Issue
Block a user