コード例 #1
0
ファイル: Base.php プロジェクト: railsphp/railsphp
 public function config()
 {
     return Assets::instance()->config();
 }
コード例 #2
0
ファイル: Loader.php プロジェクト: railsphp/framework
 public function assetsFactory()
 {
     $rootPath = $this->app->config()['paths']['root'];
     $assets = new Assets();
     $assets->addPathsFrom([$rootPath->expand('app', 'assets'), $rootPath->expand('lib', 'assets'), $rootPath->expand('vendor', 'assets')]);
     return $assets;
 }