コード例 #1
0
ファイル: ThemeManagerTest.php プロジェクト: Houbsi/Core
 /** @test */
 public function it_should_return_empty_array_if_no_folder()
 {
     $repository = new ThemeManager($this->app, $this->getFakePath());
     $this->assertEquals([], $repository->all());
 }
コード例 #2
0
ファイル: Template.php プロジェクト: stone-lab/Dynamicfield
 /**
  * Get the base path of the current theme.
  *
  * @return string
  */
 private function getCurrentThemeBasePath()
 {
     return $this->themeManager->find(setting('core::template'))->getPath();
 }
コード例 #3
0
ファイル: ThemeComposer.php プロジェクト: Houbsi/Core
 public function compose(View $view)
 {
     $view->with('themes', $this->themeManager->allPublicThemes());
 }