CachedReader example

$this->setCache($cache);
    }

    /** * @return Reader */
    public function getAnnotationsReader()
    {
        $reader = new AnnotationReader();
        $cache = $this->getMetadataCacheImpl();

        $reader = new CachedReader(
            $reader,
            $cache
        );

        return $reader;
    }

    /** * @param string $dir * * @throws RuntimeException * * @return Configuration */
Home | Imprint | This part of the site doesn't use cookies.