コード例 #1
0
ファイル: ClientAction.php プロジェクト: kidaa/core
 /**
  * Add the assets necessary to boot a Flarum client, found within the
  * directory specified by the $clientName property.
  *
  * @param AssetManager $assets
  */
 protected function addAssets(AssetManager $assets)
 {
     $root = __DIR__ . '/../..';
     $assets->addFile("{$root}/js/{$this->clientName}/dist/app.js");
     $assets->addFile("{$root}/less/{$this->clientName}/app.less");
 }