Troubleshooting pug-php / pug-symfony installation on Symfony 2.8.26

I am facing a problem while installing pug-php / pug-symfony in Symfony 2.8. I started with a fresh installation of symfony and ran

composer requires pug-php / pug-symfony

All dependencies were uploaded and loaded and also added that composer.json was also updated, however this error occurs during autoloader.php generation. (below image)

autoload.php problem when installing pug on symfony

To debug the problem, I tried to run

composer dump-autoload -o

and the same error appears again.

Then I tried something cheeky and created a new empty autoload.php file in the root of the symfony project directory and did the linker and dump-autoload update again, but this time I get this.

issue with composer release (2)

Please, help.

+3


source to share


2 answers


Your path is wrong at the moment, it states that C:\xampp\htdocs\demoSymfony\autoload.php

there is no file in the directory autoload.php

. There should be a directory vendor

where the autoload.php file is located. Can you update your question with the current repository structure / hierarchy? This will probably give us more information to help you.

Straight from their docs: For libraries that specify autoload information, Composer generates a vendor/autoload.php file. You can simply include this file and start using the classes that those libraries provide without any extra work



https://getcomposer.org/doc/01-basic-usage.md#autoloading

0


source


We have resolved this issue, you can now install it without this issue by following the README installation process: https://github.com/pug-php/pug-symfony#pug-symfony



0


source







All Articles