Matthimatiker / OpcacheBundle

Displays the PHP OPcache status in the Symfony profiler toolbar.
MIT License
22 stars 2 forks source link

Unable to install in Symfony Flex project #16

Closed PabloKowalczyk closed 7 years ago

PabloKowalczyk commented 7 years ago

Symfony Flex (http://fabien.potencier.org/symfony4-demo.html) project doesn't have symfony/symfony as dependency and this bundle requires symfony/symfony.

Matthimatiker commented 7 years ago

Hi @PabloKowalczyk,

thanks for pointing that out! Please check if version 0.5.0 works for you.

PabloKowalczyk commented 7 years ago

Thanks @Matthimatiker. It is now installable (good job) but profiler throws exceptions:

The profiler template "MatthimatikerOpcacheBundle:DataCollector:ByteCodeCache.html.twig" for data collector "matthimatiker_opcache.byte_code_cache" does not exist.

After installing symfony/templating and symfony/asset packages and adding configuration:

framework:
    templating:
      engine: "twig"

everything works great.

I think you should consider adding these packages as dependencies and add some information about configuration. Alternatively you can stop using this notation (MatthimatikerOpcacheBundle:DataCollector:ByteCodeCache.html.twig) and do not depend on symfony's twig file loader.

Thanks anyway :)

Matthimatiker commented 7 years ago

@PabloKowalczyk I am glad to hear that the bundle is at least usable for you now :-)

Thanks for sharing the details about the further problems that arised, that is really helpful! I might have a look into that within the next weeks. I did not yet find the time to tinker around with Symfony Flex in depth.