Skip to content

Commit

Permalink
Extension: Use moder method addAnnotationPathToManager().
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Dec 16, 2020
1 parent b7acc39 commit 5bd5a13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CmsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public function getConfigSchema(): Schema

public function beforeCompile(): void
{
OrmAnnotationsExtension::addAnnotationPath('Baraja\Cms\User\Entity', __DIR__ . '/User/Entity');
OrmAnnotationsExtension::addAnnotationPath('Baraja\DoctrineConfiguration', __DIR__ . '/Settings/Entity');
PluginComponentExtension::defineBasicServices($builder = $this->getContainerBuilder());
OrmAnnotationsExtension::addAnnotationPathToManager($builder, 'Baraja\Cms\User\Entity', __DIR__ . '/User/Entity');
OrmAnnotationsExtension::addAnnotationPathToManager($builder, 'Baraja\DoctrineConfiguration', __DIR__ . '/Settings/Entity');

// linkGenerator
$builder->addDefinition($this->prefix('linkGenerator'))
Expand Down

0 comments on commit 5bd5a13

Please sign in to comment.