コード例 #1
0
ファイル: Modules.php プロジェクト: caffeinated/modules
 /**
  * Register the module service provider file from all modules.
  *
  * @return void
  */
 public function register()
 {
     $modules = $this->repository->enabled();
     $modules->each(function ($module) {
         $this->registerServiceProvider($module);
         $this->autoloadFiles($module);
     });
 }
コード例 #2
0
ファイル: Modules.php プロジェクト: nickurt/modules
 /**
  * Disables the specified module.
  *
  * @param string $slug
  *
  * @return bool
  */
 public function disable($slug)
 {
     return $this->repository->disable($slug);
 }