public function locate(string $file, ?string $currentPath = null, bool $first = true) : string|array { if (isset($file[0]) && '@' === $file[0]) { $resource = $this->kernel ->locateResource($file); return $first ? $resource : [ $resource, ]; } return parent::locate($file, $currentPath, $first); }