Skip to content

Commit

Permalink
Вынесение фасадов из kodicms/core
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Feb 17, 2016
1 parent e22b88e commit a42d542
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions src/Facades/PluginLoader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace KodiCMS\Plugins\Facades;

use Illuminate\Support\Facades\Facade;

/**
* @see \KodiCMS\Plugins\Loader\PluginLoader
*/
class PluginLoader extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'plugins.loader';
}
}
3 changes: 2 additions & 1 deletion src/Providers/PluginServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use KodiCMS\Plugins\Console\Commands\PluginsListCommand;
use KodiCMS\Plugins\Console\Commands\PluginActivateCommand;
use KodiCMS\Plugins\Console\Commands\PluginDeactivateCommand;
use KodiCMS\Plugins\Facades\PluginLoader as PluginLoaderFacade;

class PluginServiceProvider extends ServiceProvider
{
Expand All @@ -27,7 +28,7 @@ public function __construct($app)
public function register()
{
$this->registerAliases([
'PluginLoader' => \KodiCMS\Support\Facades\PluginLoader::class,
'PluginLoader' => PluginLoaderFacade::class,
]);

$this->app->singleton('plugin.installer', function ($app) {
Expand Down

0 comments on commit a42d542

Please sign in to comment.