Skip to content

Commit

Permalink
[BUGFIX] Exclude domain models from DI container scanning (#1512)
Browse files Browse the repository at this point in the history
Domain models should not be scanned during DI Container building, since
entities are not meant to be services. The actual bug that results of
this missing configuration line is an exception which ocurrs when
the extbase ClassSchema is built in the same request as the DI Container
scanned all classes.
The issue this PR targets is georgringer/eventnews#102
  • Loading branch information
vertexvaar authored May 20, 2021
1 parent ee889f8 commit e039917
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Configuration/Services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:

GeorgRinger\News\:
resource: '../Classes/*'
exclude: '../Classes/Domain/Model/*'


GeorgRinger\News\Utility\ClassCacheManager:
Expand Down

0 comments on commit e039917

Please sign in to comment.