1
0
mirror of https://github.com/flarum/core.git synced 2025-07-29 04:30:56 +02:00

Introduce a vendor path

This lets us or anyone modify the path from where dependencies (usually
installed into /vendor by Composer) are loaded. We need to be able to
tweak this in our integration tests, where the application code under
test needs access to certain dependencies.
This commit is contained in:
Franz Liedke
2019-06-12 23:45:49 +02:00
parent 6e26b988bd
commit 5e1680c458
10 changed files with 69 additions and 26 deletions

View File

@@ -30,7 +30,7 @@ class FrontendServiceProvider extends AbstractServiceProvider
);
$assets->setLessImportDirs([
$this->app->basePath().'/vendor/components/font-awesome/less' => ''
$this->app->vendorPath().'/components/font-awesome/less' => ''
]);
$assets->css([$this, 'addBaseCss']);