-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from KodiCMS/analysis-877OE8
Applied fixes from StyleCI
- Loading branch information
Showing
17 changed files
with
117 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,91 +1,79 @@ | ||
<?php | ||
|
||
namespace KodiCMS\ModulesLoader\Contracts; | ||
|
||
use Illuminate\Routing\Router; | ||
|
||
interface ModuleContainerInterface | ||
{ | ||
|
||
/** | ||
* @param string $moduleName | ||
* @param null|string $modulePath | ||
* @param null|string $namespace | ||
*/ | ||
public function __construct($moduleName, $modulePath = null, $namespace = null); | ||
|
||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName(); | ||
|
||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getNamespace(); | ||
|
||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getControllerNamespace(); | ||
|
||
|
||
/** | ||
* @param strimg|null $sub | ||
* | ||
* @return string | ||
*/ | ||
public function getPath($sub = null); | ||
|
||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getLocalePath(); | ||
|
||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getViewsPath(); | ||
|
||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getConfigPath(); | ||
|
||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getRoutesPath(); | ||
|
||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getServiceProviderPath(); | ||
|
||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getPublishPath(); | ||
|
||
|
||
/** | ||
* @return array | ||
*/ | ||
public function loadConfig(); | ||
|
||
|
||
/** | ||
* @param Router $router | ||
* | ||
* @return void | ||
*/ | ||
public function loadRoutes(Router $router); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
namespace KodiCMS\ModulesLoader\Exceptions; | ||
|
||
class ModuleLoaderException extends \RuntimeException | ||
{ | ||
|
||
} | ||
} |
Oops, something went wrong.