I cannot find a way to add the lessphp files to my project so that assetic finds them. I do not wish to add extra require sentences to the assetic files or modify them in any way so future updates are easily made.
I get this error:
Fatal error: Class 'lessc' not found in ....../kriswallsmith/assetic/src/Assetic/Filter/LessphpFilter.php on line 87
The code on that line is the lessc intantiation:
$lc = new \lessc();
Note: I cannot use Composer to install it since Composer brings some issues to my project.
Assetic will not import
lessc.inc.phpfor you. You have to do it manually.I assume you are using Assetic standalone in your application, you should be doing something like this:
But for that causalities that you are using Symfony2, you should configure lessphp filter in your
app/config/config.ymllike this:Let me know.