Completed
Pull Request — master (#165)
by Paul
03:21
created

AbstractCommand::getServiceManager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the PPI Framework.
4
 *
5
 * @copyright  Copyright (c) 2011-2016 Paul Dragoonis <[email protected]>
6
 * @license    http://opensource.org/licenses/mit-license.php MIT
7
 *
8
 * @link       http://www.ppi.io
9
 */
10
11
namespace PPI\Framework\Console\Command;
12
13
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
14
15
/**
16
 * Base class for all commands.
17
 *
18
 * @author      Vítor Brandão <[email protected]>
19
 */
20
abstract class AbstractCommand extends ContainerAwareCommand
21
{
22
    /**
23
     * @return \Zend\ServiceManager\ServiceManagerInterface
24
     */
25
    protected function getServiceManager()
26
    {
27
        return $this->getContainer();
28
    }
29
}
30