/
Command.php
34 lines (29 loc) · 952 Bytes
/
Command.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace Symfony\Bundle\FrameworkBundle\Command;
use Symfony\Components\Console\Input\InputArgument;
use Symfony\Components\Console\Input\InputOption;
use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Output\OutputInterface;
use Symfony\Components\Console\Output\Output;
use Symfony\Components\Console\Command\Command as BaseCommand;
/*
* This file is part of the Symfony framework.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
/**
* Command.
*
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
abstract class Command extends BaseCommand
{
protected $container;
protected function initialize(InputInterface $input, OutputInterface $output)
{
$this->container = $this->application->getKernel()->getContainer();
}
}