src/PeekAndPoke/Aviator/Mvc/Builder/MvcBuilder.php
protected function extractControllerDefinition(ScannedPhpClass $subject) : ?ControllerDefinition
    {
        $class      = $subject->getClass();
        $annotation = $this->reader->getClassAnnotation($class, Mvc\Controller::class);

        // TODO: we need a registry for converters, so we can for example plug in the RIP
        if ($annotation instanceof Mvc\Controller) {

            return new ControllerDefinition(
                $class->getName(),
                $class->getName(),
                $this->getActions($class)
            );
        }

        return null;
    }
protected function extractControllerDefinition(ScannedPhpClass $subject) : ?ControllerDefinition
    {
        $class      = $subject->getClass();
        $annotation = $this->reader->getClassAnnotation($class, Mvc\Controller::class);

        // TODO: we need a registry for converters, so we can for example plug in the RIP
        if ($annotation instanceof Mvc\Controller) {

            return new ControllerDefinition(
                $class->getName(),
                $class->getName(),
                $this->getActions($class)
            );
        }

        return null;
    }
@param ScannedPhpClass $subject

@return null|ControllerDefinition