src/PeekAndPoke/Aviator/ServiceContainer/ServiceDefinitionProvider/ForContainerServiceAnnotation.php
public function provide(Builder $builder, Frame $frame) : ServiceDefinition
    {
        $marker = $frame->getServiceAnnotation();

        if (! $marker instanceof ContainerService) {
            throw new BuilderException("This provider can only handle {$this->handles()}");
        }

        return new ServiceDefinition\ContainerService($frame->getClass()->getName(), $marker->getId());
    }
public function provide(Builder $builder, Frame $frame) : ServiceDefinition
    {
        $marker = $frame->getServiceAnnotation();

        if (! $marker instanceof ContainerService) {
            throw new BuilderException("This provider can only handle {$this->handles()}");
        }

        return new ServiceDefinition\ContainerService($frame->getClass()->getName(), $marker->getId());
    }
@param Builder $builder
@param Frame   $frame

@return ServiceDefinition

@throws BuilderException