Skip to content

Commit

Permalink
Merge pull request sonata-project#316 from ThomasTr/1.0
Browse files Browse the repository at this point in the history
Named services to classnames (with alias) and made public for Symfony 4 support
  • Loading branch information
tolry authored Apr 4, 2018
2 parents ea97355 + e4a863a commit 44c94e9
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/SimpleThings/EntityAudit/Resources/config/auditable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@
</parameters>

<services>
<service id="simplethings_entityaudit.manager" class="SimpleThings\EntityAudit\AuditManager">
<service id="simplethings_entityaudit.manager" class="SimpleThings\EntityAudit\AuditManager" public="true">
<argument id="simplethings_entityaudit.config" type="service" />
</service>

<service id="simplethings_entityaudit.reader" class="SimpleThings\EntityAudit\AuditReader">
<service id="SimpleThings\EntityAudit\AuditManager" alias="simplethings_entityaudit.manager" public="true" />

<service id="simplethings_entityaudit.reader" class="SimpleThings\EntityAudit\AuditReader" public="true">
<factory service="simplethings_entityaudit.manager" method="createAuditReader" />
<argument type="service" id="doctrine.orm.default_entity_manager" />
</service>

<service id="SimpleThings\EntityAudit\AuditReader" alias="simplethings_entityaudit.reader" />

<service id="simplethings_entityaudit.log_revisions_listener" class="SimpleThings\EntityAudit\EventListener\LogRevisionsListener">
<argument id="simplethings_entityaudit.manager" type="service" />
<tag name="doctrine.event_subscriber" connection="default" />
Expand All @@ -39,7 +43,7 @@
<argument id="service_container" type="service" />
</service>

<service id="simplethings_entityaudit.config" class="SimpleThings\EntityAudit\AuditConfiguration">
<service id="simplethings_entityaudit.config" class="SimpleThings\EntityAudit\AuditConfiguration" public="true">
<call method="setAuditedEntityClasses">
<argument>%simplethings.entityaudit.audited_entities%</argument>
</call>
Expand Down Expand Up @@ -68,6 +72,9 @@
<argument type="service" id="simplethings_entityaudit.username_callable" />
</call>
</service>

<service id="SimpleThings\EntityAudit\AuditConfiguration" alias="simplethings_entityaudit.config" />

</services>
</container>

0 comments on commit 44c94e9

Please sign in to comment.