Skip to content

Commit

Permalink
Define a custom cache service
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Nov 6, 2024
1 parent f13e62f commit 2e35b1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Resources/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,14 @@
->args([[AdminUrlGenerator::class => service(AdminUrlGenerator::class)]])
->tag('container.service_locator')

->set('cache.easyadmin')
->parent('cache.system')
->tag('cache.pool')

->set(AdminRouteGenerator::class)
->arg(0, tagged_iterator(EasyAdminExtension::TAG_DASHBOARD_CONTROLLER))
->arg(1, tagged_iterator(EasyAdminExtension::TAG_CRUD_CONTROLLER))
->arg(2, service('cache.system'))
->arg(2, service('cache.easyadmin'))

->set(AdminRouteLoader::class)
->arg(0, service(AdminRouteGenerator::class))
Expand Down

0 comments on commit 2e35b1f

Please sign in to comment.