Beispiel #1
0
 /** @test */
 public function it_should_return_empty_array_if_no_folder()
 {
     $repository = new ThemeManager($this->app, $this->getFakePath());
     $this->assertEquals([], $repository->all());
 }
Beispiel #2
0
 /**
  * Get the base path of the current theme.
  *
  * @return string
  */
 private function getCurrentThemeBasePath()
 {
     return $this->themeManager->find(setting('core::template'))->getPath();
 }
Beispiel #3
0
 public function compose(View $view)
 {
     $view->with('themes', $this->themeManager->allPublicThemes());
 }