Skip to content

Commit

Permalink
bug #232 fix: correctly wire the build-time file into kernel.build_di…
Browse files Browse the repository at this point in the history
…r (dkarlovi, Kocal)

This PR was merged into the 2.x branch.

Discussion
----------

fix: correctly wire the build-time file into kernel.build_dir

See symfony/symfony#50357 /cc `@Okhoshi`

Commits
-------

9f2e8b5 fix(config): remove useless service from #236
e9ef4b5 fix: correctly wire the build-time file into kernel.build_dir
  • Loading branch information
Kocal committed Oct 1, 2024
2 parents 6be5556 + 9f2e8b5 commit 16af8a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
<tag name="kernel.cache_warmer" />
<argument /> <!-- build list of entrypoint paths -->
<argument type="service" id="http_client" on-invalid="null" />
<argument>%kernel.cache_dir%/webpack_encore.cache.php</argument>
<argument>%kernel.build_dir%/webpack_encore.cache.php</argument>
</service>

<service id="webpack_encore.cache" class="Symfony\Component\Cache\Adapter\PhpArrayAdapter">
<factory class="Symfony\Component\Cache\Adapter\PhpArrayAdapter" method="create" />
<argument>%kernel.cache_dir%/webpack_encore.cache.php</argument>
<argument>%kernel.build_dir%/webpack_encore.cache.php</argument>
<argument type="service" id="cache.webpack_encore" />
</service>

Expand All @@ -68,7 +68,5 @@
<tag name="kernel.event_subscriber" />
<argument type="service" id="webpack_encore.entrypoint_lookup_collection" />
</service>

<service id="webpack_encore.http_client" alias="http_client" />
</services>
</container>

0 comments on commit 16af8a3

Please sign in to comment.