KayueWordPressBundle with SYmfony 4.4.1: The class XXX was not found in the chain configured namespaces AppEntity

I’m trying to work with kayue/KayueWordpressBundle installed with composer as composer require kayue/kayue-wordpress-bundle in my Symfony 4.4.1 project but I’m unable to. This is what I’m trying to do: <?php namespace AppServiceWordPress; use DoctrineORMEntityManagerInterface; use KayueWordpressBundleEntityPost; class PostCollection { protected…

Symfony 3 – Serve image within twig extension

I want to serve several images wich are not avaibles in public folder (web) using php for example path/to/myphp/script.php?image=imagereference&some=parameter To improve performances and not using this approach I made a twig extension to do that. <?php #src/MyBundle/Service/DisplayImage.php namespace MyBundleService; #https://symfony.com/blog/new-in-symfony-2-4-the-request-stack…