* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\Event; use Symfony\Component\ExpressionLanguage\ExpressionLanguage; /** * Provides read-only access to controller metadata. * * @author Nicolas Grekas
*/
class ControllerMetadata
{
public function __construct(
private ControllerEvent $controllerEvent,
) {
}
public function getController(): callable
{
return $this->controllerEvent->getController();
}
public function getReflector(): \ReflectionFunctionAbstract
{
return $this->controllerEvent->getControllerReflector();
}
/**
* @template T of object
*
* @param class-string