for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the core-bundle package.
*
* (c) 2018 WEBEWEB
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\CoreBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\Container;
* Container trait
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Bundle\CoreBundle\DependencyInjection
trait ContainerTrait {
* Container.
* @var Container.
private $container;
* Get the container.
* @return Container Returns the container.
public function getContainer() {
return $this->container;
}
* Set the container.
* @param Container $container The container.
protected function setContainer(Container $container) {
$this->container = $container;
return $this;