mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
164 lines
3.2 KiB
PHP
164 lines
3.2 KiB
PHP
<?php namespace Visiosoft\BaseTheme;
|
|
|
|
use Anomaly\Streams\Platform\Addon\AddonServiceProvider;
|
|
use Illuminate\Routing\Router;
|
|
|
|
class BaseThemeServiceProvider extends AddonServiceProvider
|
|
{
|
|
|
|
/**
|
|
* Additional addon plugins.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $plugins = [];
|
|
|
|
/**
|
|
* The addon Artisan commands.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $commands = [];
|
|
|
|
/**
|
|
* The addon's scheduled commands.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $schedules = [];
|
|
|
|
/**
|
|
* The addon API routes.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $api = [];
|
|
|
|
/**
|
|
* The addon routes.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $routes = [];
|
|
|
|
/**
|
|
* The addon middleware.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $middleware = [
|
|
//Visiosoft\TestbootTheme\Http\Middleware\ExampleMiddleware::class
|
|
];
|
|
|
|
/**
|
|
* Addon group middleware.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $groupMiddleware = [
|
|
//'web' => [
|
|
// Visiosoft\TestbootTheme\Http\Middleware\ExampleMiddleware::class,
|
|
//],
|
|
];
|
|
|
|
/**
|
|
* Addon route middleware.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $routeMiddleware = [];
|
|
|
|
/**
|
|
* The addon event listeners.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $listeners = [
|
|
//Visiosoft\TestbootTheme\Event\ExampleEvent::class => [
|
|
// Visiosoft\TestbootTheme\Listener\ExampleListener::class,
|
|
//],
|
|
];
|
|
|
|
/**
|
|
* The addon alias bindings.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $aliases = [
|
|
//'Example' => Visiosoft\TestbootTheme\Example::class
|
|
];
|
|
|
|
/**
|
|
* The addon class bindings.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $bindings = [];
|
|
|
|
/**
|
|
* The addon singleton bindings.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $singletons = [];
|
|
|
|
/**
|
|
* Additional service providers.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $providers = [
|
|
//\ExamplePackage\Provider\ExampleProvider::class
|
|
];
|
|
|
|
/**
|
|
* The addon view overrides.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $overrides = [
|
|
//'streams::errors/404' => 'module::errors/404',
|
|
//'streams::errors/500' => 'module::errors/500',
|
|
];
|
|
|
|
/**
|
|
* The addon mobile-only view overrides.
|
|
*
|
|
* @type array|null
|
|
*/
|
|
protected $mobile = [
|
|
//'streams::errors/404' => 'module::mobile/errors/404',
|
|
//'streams::errors/500' => 'module::mobile/errors/500',
|
|
];
|
|
|
|
/**
|
|
* Register the addon.
|
|
*/
|
|
public function register()
|
|
{
|
|
// Run extra pre-boot registration logic here.
|
|
// Use method injection or commands to bring in services.
|
|
}
|
|
|
|
/**
|
|
* Boot the addon.
|
|
*/
|
|
public function boot()
|
|
{
|
|
// Run extra post-boot registration logic here.
|
|
// Use method injection or commands to bring in services.
|
|
}
|
|
|
|
/**
|
|
* Map additional addon routes.
|
|
*
|
|
* @param Router $router
|
|
*/
|
|
public function map(Router $router)
|
|
{
|
|
// Register dynamic routes here for example.
|
|
// Use method injection or commands to bring in services.
|
|
}
|
|
|
|
}
|