for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace W2w\Lib\Apie\Plugins;
use Doctrine\Common\Annotations\Reader;
use W2w\Lib\Apie\ExtendReaderWithConfigReader;
use W2w\Lib\Apie\PluginInterfaces\AnnotationReaderProviderInterface;
use W2w\Lib\Apie\PluginInterfaces\ApieAwareInterface;
use W2w\Lib\Apie\PluginInterfaces\ApieAwareTrait;
class FakeAnnotationsPlugin implements AnnotationReaderProviderInterface, ApieAwareInterface
{
use ApieAwareTrait;
private $config;
public function __construct(array $config)
$this->config = $config;
}
public function getAnnotationReader(): Reader
$reader = $this->getApie()->getPlugin(CorePlugin::class)->getAnnotationReader();
return new ExtendReaderWithConfigReader($reader, $this->config);