StarRatingBundle icon indicating copy to clipboard operation
StarRatingBundle copied to clipboard

Symfony 4 template not found exception

Open mechanicalgux opened this issue 6 years ago • 1 comments

This bundle will trigger an exception Symfony 4.

https://github.com/blackknight467/StarRatingBundle/blob/08e7caf167232c96dd77182c603475ef9623290b/DependencyInjection/StarRatingExtension.php#L31

To solve this, change the line with:

$resources = array_merge(array('@StarRatingBundle/rating.html.twig'), $resources);

Then add and alias to /config/packages/twig.yaml:

twig:
  paths:
    '%kernel.project_dir%/templates': templates
    '%kernel.project_dir%/vendor/blackknight467/star-rating-bundle/blackknight467/StarRatingBundle/Resources/views': StarRatingBundle

mechanicalgux avatar May 10 '18 10:05 mechanicalgux

It seems to be abandoned. I forked the source and applied your patch: https://github.com/brokoskokoli/StarRatingBundle

brokoskokoli avatar Jun 17 '18 01:06 brokoskokoli