diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2015-01-14 12:32:47 +0100 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2015-01-20 14:19:55 +0100 |
| commit | dab07283573689fcc6eb2c4e270ac37c3a573959 (patch) | |
| tree | 0aceb458119ef338356daf0e5d9f25838214bb6b /phpBB/phpbb/db/migration/container_aware_migration.php | |
| parent | ce47170c29f4bd7b6a9a4dc74f95be5b4241872d (diff) | |
| download | forums-dab07283573689fcc6eb2c4e270ac37c3a573959.tar forums-dab07283573689fcc6eb2c4e270ac37c3a573959.tar.gz forums-dab07283573689fcc6eb2c4e270ac37c3a573959.tar.bz2 forums-dab07283573689fcc6eb2c4e270ac37c3a573959.tar.xz forums-dab07283573689fcc6eb2c4e270ac37c3a573959.zip | |
[ticket/13489] Fix service configuration
PHPBB3-13489
Diffstat (limited to 'phpBB/phpbb/db/migration/container_aware_migration.php')
| -rw-r--r-- | phpBB/phpbb/db/migration/container_aware_migration.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/container_aware_migration.php b/phpBB/phpbb/db/migration/container_aware_migration.php new file mode 100644 index 0000000000..3b4b49b04b --- /dev/null +++ b/phpBB/phpbb/db/migration/container_aware_migration.php @@ -0,0 +1,36 @@ +<?php +/** +* +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited <https://www.phpbb.com> +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file. +* +*/ + +namespace phpbb\db\migration; + +use Symfony\Component\DependencyInjection\ContainerAwareInterface; +use Symfony\Component\DependencyInjection\ContainerInterface; + +/** +* Abstract base class for container aware database migrations. +*/ +abstract class container_aware_migration extends migration implements ContainerAwareInterface +{ + /** + * @var ContainerInterface + */ + protected $container; + + /** + * {@inheritdoc} + */ + public function setContainer(ContainerInterface $container = null) + { + $this->container = $container; + } +} |
