diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2015-01-20 23:27:54 +0100 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2015-01-20 23:27:54 +0100 |
| commit | a5fae1b1f09358f8a24ff32fc5192395cd314244 (patch) | |
| tree | e4944e89871808f1ada2df59e8cf815d3d2203ec /phpBB/phpbb/db/migration/container_aware_migration.php | |
| parent | d0e5c0a1871c37bfea780cc525e996749b13a0ee (diff) | |
| parent | dab07283573689fcc6eb2c4e270ac37c3a573959 (diff) | |
| download | forums-a5fae1b1f09358f8a24ff32fc5192395cd314244.tar forums-a5fae1b1f09358f8a24ff32fc5192395cd314244.tar.gz forums-a5fae1b1f09358f8a24ff32fc5192395cd314244.tar.bz2 forums-a5fae1b1f09358f8a24ff32fc5192395cd314244.tar.xz forums-a5fae1b1f09358f8a24ff32fc5192395cd314244.zip | |
Merge pull request #3293 from Nicofuma/ticket/13489
[ticket/13489] Disable the event dispatcher in the migrator
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; + } +} |
