public function __construct(KernelInterface $kernel) { $this->kernel = $kernel; $this->reflected = new \ReflectionObject($kernel); }