Open
Description
For non local working enviroments several implementations are not working because of unknown path structure. especially missing view path are annoying. We should try to replace absolute paths with some self learning behavior.
some ideas:
- find duplicates on parameter to get root
- relative path split and search directory structure
- add project config
<parameter key="kernel.root_dir">D:\htdocs\sy2.6\app</parameter>
<parameter key="assetic.cache_dir">D:\htdocs\sy2.6\app\cache\dev/assetic</parameter>
<parameter key="kernel.cache_dir">D:\htdocs\sy2.6\app\cache\dev</parameter>
<parameter key="kernel.logs_dir">D:\htdocs\sy2.6\app\logs</parameter>
<call method="addPath">
<argument>D:\htdocs\sy2.6\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle/Resources/views</argument>
<argument>Framework</argument>
</call>
<call method="addXmlMappings">
<argument type="collection">
<argument>D:\htdocs\sy2.6\vendor\symfony\symfony\src\Symfony\Component\Form/Resources/config/validation.xml</argument>
</argument>
</call>
<argument type="service">
<service class="Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource" public="false">
<tag name="assetic.templating.twig"/>
<tag name="assetic.formula_resource" loader="twig"/>
<argument type="service" id="templating.loader"/>
<argument></argument>
<argument>D:\htdocs\sy2.6\app/Resources/views</argument>
<argument>/\.[^.]+\.twig$/</argument>
</service>
</argument>
<argument>twig</argument>
</call>