public function __construct(KernelInterface $kernel) { $this->rootDir = $kernel->getRootDir() . '/../src'; }