1111
1212namespace Networking \InitCmsBundle \Admin ;
1313
14- use Networking \InitCmsBundle \Reader \ SonataAdminAnnotationReaderInterface ;
14+ use Networking \InitCmsBundle \AttributeReader \ SonataAdminAttributeReaderInterface ;
1515use Sonata \AdminBundle \Admin \AbstractAdmin ;
1616use Sonata \AdminBundle \Datagrid \DatagridInterface ;
1717use Sonata \AdminBundle \Datagrid \DatagridMapper ;
2727 */
2828abstract class BaseAdmin extends AbstractAdmin
2929{
30- protected $ annotationReader ;
30+ protected $ attributeReader ;
3131
3232 /**
3333 * @var array
@@ -132,6 +132,7 @@ public function getTrackedActions(): array
132132
133133 protected function configureListFields (ListMapper $ list ): void
134134 {
135+
135136 $ this ->getSonataAnnotationReader ()?->configureListFields($ this ->getClass (), $ list );
136137 }
137138
@@ -150,17 +151,17 @@ protected function configureDatagridFilters(DatagridMapper $filter): void
150151 $ this ->getSonataAnnotationReader ()?->configureDatagridFilters($ this ->getClass (), $ filter );
151152 }
152153
153- protected function getSonataAnnotationReader (): ?SonataAdminAnnotationReaderInterface
154+ protected function getSonataAnnotationReader (): ?SonataAdminAttributeReaderInterface
154155 {
155- return $ this ->annotationReader ;
156+ return $ this ->attributeReader ;
156157 }
157158
158159 /**
159160 * @return $this
160161 */
161- public function setSonataAnnotationReader (SonataAdminAnnotationReaderInterface $ annotationReader ): self
162+ public function setSonataAnnotationReader (SonataAdminAttributeReaderInterface $ annotationReader ): self
162163 {
163- $ this ->annotationReader = $ annotationReader ;
164+ $ this ->attributeReader = $ annotationReader ;
164165
165166 return $ this ;
166167 }
0 commit comments