|
@ -36,11 +36,11 @@ class Plugin extends PluginBase |
|
|
public function boot() |
|
|
public function boot() |
|
|
{ |
|
|
{ |
|
|
// Service provider
|
|
|
// Service provider
|
|
|
App::register('\Sensory5\Shortcode\Classes\ShortcodeServiceProvider'); |
|
|
|
|
|
|
|
|
App::register('\Sensory5\Shortcode\Classes\ServiceProvider'); |
|
|
|
|
|
|
|
|
// Register alias
|
|
|
// Register alias
|
|
|
$alias = AliasLoader::getInstance(); |
|
|
$alias = AliasLoader::getInstance(); |
|
|
$alias->alias('Shortcode', '\Sensory5\Shortcode\Classes\ShortcodeFacade'); |
|
|
|
|
|
|
|
|
$alias->alias('Shortcode', '\Sensory5\Shortcode\Classes\Facade'); |
|
|
|
|
|
|
|
|
// Enable shortcodes on all pages if requested
|
|
|
// Enable shortcodes on all pages if requested
|
|
|
if (Settings::get('enable_on_render', false)) |
|
|
if (Settings::get('enable_on_render', false)) |
|
|