src/PeekAndPoke/AviatorAllRounder/AviatorAllRounderDefaults.php
public function createAnnotationReader(Cache $cache, Environment $environment) : Reader
    {
        AnnotationRegistry::registerLoader(function ($class) {
            return class_exists($class) || interface_exists($class) || trait_exists($class);
        });

        return new CachedReader(new AnnotationReader(), $cache, $environment->isDevMode());
    }
public function createAnnotationReader(Cache $cache, Environment $environment) : Reader
    {
        AnnotationRegistry::registerLoader(function ($class) {
            return class_exists($class) || interface_exists($class) || trait_exists($class);
        });

        return new CachedReader(new AnnotationReader(), $cache, $environment->isDevMode());
    }
public function createAnnotationReader ( Cache $ cache , Environment $ environment ) : Reader { AnnotationRegistry :: registerLoader ( function ( $ class ) { return class_exists ( $ class ) || interface_exists ( $ class ) || trait_exists ( $ class ) ; } ) ; return new CachedReader ( new AnnotationReader ( ) , $ cache , $ environment -> isDevMode ( ) ) ; }
@Di\Service("annotation.reader")

@param Cache       $cache
@param Environment $environment

@return Reader
@Di \ Service ( annotation . reader )