Closed vincentcordel closed 10 years ago
you can put the wrapper any where you want so long as that Class is available at runtime. you don't have to namespace it under Codesleeve\AssetPipeline\Filters either. if you open up your composer.json you can add the file manually if you want to...
"autoload": {
"files": [
"app\libs\LessjsFilter.php"
]
}
Not sure what "file" you mean here. Are you talking about the LessjsFilter.php file you created? You will not need to reference (or require "Some\Path\LessjsFilter.php"
) so long as composer is autoloading this class.
I don't see anything wrong with this right off the bat. You might use a different namespace since this is your custom filter.
Hi there,
I read the following issue: https://github.com/CodeSleeve/asset-pipeline/issues/124
You mentioned to write a wrapper.
So I created the following filter: <?php namespace Codesleeve\AssetPipeline\Filters;
And in the config file, I changed the less filter to:
However this doesn't work yet. I can't create a file in the vendor folder so the path is obviously incorrect.
My question:
Thanks again and sorry for the easy question :)