Facing issue installing pug-php/pug-symfony on Symfony 2.8.26

Viewed 86

I am facing an issue while installing pug-php/pug-symfony in Symfony 2.8. I started with a fresh symfony installation and executed

composer require pug-php/pug-symfony

All the dependencies were fetched and downloaded and tyhe composer.json also got updated, however in the step of autoloader.php generation, it comes up with this error. (below image)

autoload.php issue when installing pug on symfony

To debug the issue, i tried executing

composer dump-autoload -o

and the same error pops up again.

Next, I tried something cheeky and created a new blank autoload.php file in the Symfony project directory root, and again executed composer update and composer dump-autoload, however, this time am getting this,

composer update issue (2)

Please help.

2 Answers
Related