Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Autodetect Sulu CMS services.xml #2409

Open
RafaelKr opened this issue Dec 30, 2024 · 0 comments
Open

FR: Autodetect Sulu CMS services.xml #2409

RafaelKr opened this issue Dec 30, 2024 · 0 comments

Comments

@RafaelKr
Copy link

The Sulu project (https://sulu.io/), which is based on Symfony, splits up the Container Cache for the user-facing (website) and CMS (admin) parts of the application. Also there's preview for previewing a website page in the CMS editor.

It adds the following paths:

  • var/cache/admin/dev/App_KernelDevDebugContainer.xml
  • var/cache/website/dev/App_KernelDevDebugContainer.xml
  • var/cache/preview/dev/App_KernelDevDebugContainer.xml

Currently I manually need to add those paths, so IntelliJ IDEA (Symfony Support) is able to resolve all services correctly:

image

Would it be possible to make Symfony Support detect those paths automatically for Sulu projects?

Alternatively I could imagine that projects based on Symfony could modify the .idea/symfony2.xml at container compile time. Sulu then could modify that file to look like:

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="Symfony2PluginSettings">
    <option name="pathToTranslation" value="var/cache/website/dev/translations" />
    <option name="pluginEnabled" value="true" />
    <option name="profilerLocalEnabled" value="true" />
    <option name="profilerCsvPath" value="var/cache/website/dev/profiler/index.csv" />
    <option name="containerFiles">
      <list>
        <container_file path="var/cache/website/dev/App_KernelDevDebugContainer.xml" />
        <container_file path="var/cache/admin/dev/App_KernelDevDebugContainer.xml" />
      </list>
    </option>
  </component>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant