for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
*
* (c) Yaroslav Honcharuk <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Yarhon\RouteGuardBundle\Controller\ArgumentResolver;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\ParameterBag;
/**
* @author Yaroslav Honcharuk <[email protected]>
class ArgumentResolverContext implements ArgumentResolverContextInterface
{
* @var Request
private $request;
* @var ParameterBag
private $attributes;
* @var string
private $controllerName;
* @param Request|null $request
* @param ParameterBag $attributes
* @param string $controllerName
public function __construct(ParameterBag $attributes, $controllerName, Request $request = null)
$this->request = $request;
$this->attributes = $attributes;
$this->controllerName = $controllerName;
}
* {@inheritdoc}
public function getRequest()
return $this->request;
public function getAttributes()
return $this->attributes;
public function getControllerName()
return $this->controllerName;