for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* @author : Korotkov Danila <[email protected]>
* @copyright Copyright (c) 2016, Korotkov Danila
* @license http://www.gnu.org/licenses/gpl.html GNU GPLv3.0
*/
namespace Rudra\Traits;
use Rudra\Interfaces\ContainerInterface;
* trait SetContainerTrait
*
* @package Rudra
trait SetContainerTrait
{
* @var ContainerInterface
protected $container;
* Middleware constructor.
* @param ContainerInterface $container
public function __construct(ContainerInterface $container)
$this->container = $container;
}
* @return ContainerInterface
public function container(): ContainerInterface
return $this->container;