for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Neimheadh\SonataAnnotationBundle\Reader;
use Doctrine\Common\Annotations\Reader;
use Neimheadh\SonataAnnotationBundle\Annotation\Sonata\Admin;
use Neimheadh\SonataAnnotationBundle\Annotation\Sonata\ShowField;
/**
* Show configuration reader.
*
* @author Marko Kunic <[email protected]>
* @author Mathieu Wambre <[email protected]>
*/
final class ShowReader extends AbstractFieldConfigurationReader
{
* {@inheritDoc}
public function __construct(Reader $annotationReader)
parent::__construct($annotationReader, ShowField::class);
}
protected function getAdminAnnotationFields(
Admin $annotation,
?string $action
): array {
return $annotation->getShowFields();