public function resolve($matches = [])
    {
        if (!isset($this->route['controller'])) {
            return false;
        }

        list($controller,) = explode('@', $this->route['controller']);

        $fileName = (new ReflectionClass($controller))->getFileName();
        $rootPath = substr($fileName, 0, strrpos($fileName, 'src'));
        $composerFilePath = $rootPath . 'composer.json';

        if($rootPath === '' || ! file_exists($composerFilePath)) {
            return false;
        }

        $this->package = $this->extensionFactory->getComposerPackage($composerFilePath);
        $this->name = $this->package->getName();

        return $this->name;
    }