for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the awurth/silex-user package.
*
* (c) Alexis Wurth <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace AWurth\Silex\User\Command;
use Pimple\Container;
use Symfony\Component\Console\Command\Command;
/**
* Command.
* @author Alexis Wurth <[email protected]>
abstract class ContainerAwareCommand extends Command
{
* @var Container
protected $container;
* Constructor.
* @param Container $container
* @param string|null $name
public function __construct(Container $container, $name = null)
parent::__construct($name);
$this->container = $container;
}
* Gets the container.
* @return Container
public function getContainer()
return $this->container;
* Sets the container.
public function setContainer(Container $container)