- Add the following lines of code to the end of the
deps
file:
[lessphp]
git=https://github.com/leafo/lessphp.git
target=/lessphp
version=v0.3.2
List of available versions: https://github.com/leafo/lessphp/tags
-
Run
bin/vendors install
; -
Then -
Create a new fileautoload_non_standart.php
inapp
folder. -
Add this to the end ofapp/autoload.php
file:require 'autoload_non_standart.php';
-
Or another way - http://stackoverflow.com/questions/8958118/symfony-autoload-namespace-difficulties -
The best approach is to add
file: %kernel.root_dir%/../vendor/lessphp/lessc.inc.php
to config.yml file:
#...
assetic:
#...
filters:
lessphp:
file: %kernel.root_dir%/../vendor/lessphp/lessc.inc.php
apply_to: "\.less$"
See https://gist.github.com/3082684 for Symfony 2.1