Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
container_aware_migration
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 setContainer
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3*
4* This file is part of the phpBB Forum Software package.
5*
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
7* @license GNU General Public License, version 2 (GPL-2.0)
8*
9* For full copyright and license information, please see
10* the docs/CREDITS.txt file.
11*
12*/
13
14namespace phpbb\db\migration;
15
16use Symfony\Component\DependencyInjection\ContainerAwareInterface;
17use Symfony\Component\DependencyInjection\ContainerInterface;
18
19/**
20* Abstract base class for container aware database migrations.
21*/
22abstract class container_aware_migration extends migration implements ContainerAwareInterface
23{
24    /**
25     * @var ContainerInterface
26     */
27    protected $container;
28
29    /**
30     * {@inheritdoc}
31     */
32    public function setContainer(ContainerInterface $container = null)
33    {
34        $this->container = $container;
35    }
36}