for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yajra\CMS\Themes\Repositories;
interface Repository
{
/**
* Scan themes directory.
*/
public function scan();
* Register theme.json file.
*
* @param \SplFileInfo $file
* @throws \Exception
public function register($file);
* Get all themes.
* @return \Illuminate\Support\Collection
public function all();
* Get current frontend theme.
* @return \Yajra\CMS\Themes\Theme
* @throws \Yajra\CMS\Themes\Exceptions\ThemeNotFoundException
public function current();
* Find or fail a theme.
* @param string $theme
* @param string $type
public function findOrFail($theme, $type = 'frontend');
* Uninstall a theme.
* @return bool
public function uninstall($theme);
* Get directory path of the theme.
* @return string
public function getDirectoryPath($theme);
* Get themes base path.
public function getBasePath();
}