System\ServiceProvider

Extends:

Public properties

There are no public properties in the class.

Show inherited public properties

Inherited public properties

  • public static array $publishes - defined in Illuminate\Support\ServiceProvider. The paths that should be published.
  • public static array $publishGroups - defined in Illuminate\Support\ServiceProvider. The paths that should be published by group.

Protected properties

There are no protected properties in the class.

Show inherited protected properties

Inherited protected properties

  • protected bool $defer - defined in October\Rain\Support\ModuleServiceProvider. defer indicates if loading of the provider is deferred.
  • protected Illuminate\Contracts\Foundation\Application $app - defined in Illuminate\Support\ServiceProvider. The application instance.

Public methods

public void boot()

Bootstrap the module events.

public void register()

Register the service provider.

Show inherited public methods

Inherited public methods

  • public void __construct(Illuminate\Contracts\Foundation\Application $app) - defined in Illuminate\Support\ServiceProvider. Create a new service provider instance.
  • public void commands(array|mixed $commands) - defined in Illuminate\Support\ServiceProvider. Register the package's custom Artisan commands.
  • public void getModule($args) - defined in October\Rain\Support\ModuleServiceProvider. getModule gets the module name from method args.
  • public bool isDeferred() - defined in Illuminate\Support\ServiceProvider. Determine if the provider is deferred.
  • public static array pathsToPublish(string|null $provider=NULL, string|null $group=NULL) - defined in Illuminate\Support\ServiceProvider. Get the paths to publish.
  • public void provides() - defined in October\Rain\Support\ModuleServiceProvider. provides gets the services provided by the provider.
  • public static array publishableGroups() - defined in Illuminate\Support\ServiceProvider. Get the groups available for publishing.
  • public static array publishableProviders() - defined in Illuminate\Support\ServiceProvider. Get the service providers available for publishing.
  • public void registerConsoleCommand($key $key, $class $class) - defined in October\Rain\Support\ModuleServiceProvider. registerConsoleCommand registers a new console (artisan) command.
  • public array when() - defined in Illuminate\Support\ServiceProvider. Get the events that trigger this service provider to register.

Protected methods

protected void applyDatabaseDefaultStringLength()

Allows the database config to specify a max length for VARCHAR Primarily used by MariaDB (<10.2) and MySQL (<5.7)

protected void forgetSingletons()

Forget singletons that may linger from previous instances, useful for testing and booting secondary instances

protected void registerAssetBundles()

Register asset bundles

protected void registerBackendNavigation()

protected void registerBackendPermissions()

protected void registerBackendReportWidgets()

protected void registerBackendSettings()

protected void registerConsole()

Register command line specifics

protected void registerErrorHandler()

protected void registerGlobalViewVars()

protected void registerLogging()

protected void registerMailer()

Register mail templating and settings override.

protected void registerMarkupTags()

protected void registerSingletons()

Register singletons

protected void registerTwigParser()

protected void registerValidator()

Extends the validator with custom rules

Show inherited protected methods

Inherited protected methods

  • protected void addPublishGroup(string $group, array $paths) - defined in Illuminate\Support\ServiceProvider. Add a publish group / tag to the service provider.
  • protected void callAfterResolving(string $name, callable $callback) - defined in Illuminate\Support\ServiceProvider. Setup an after resolving listener, or fire immediately if already resolved.
  • protected void ensurePublishArrayInitialized(string $class) - defined in Illuminate\Support\ServiceProvider. Ensure the publish array for the service provider is initialized.
  • protected void loadConfigFrom(string $path, string $namespace) - defined in October\Rain\Support\ModuleServiceProvider. loadConfigFrom registers a config file namespace.
  • protected void loadFactoriesFrom(array|string $paths) - defined in Illuminate\Support\ServiceProvider. Register Eloquent model factory paths.
  • protected void loadJsonTranslationsFrom(string $path) - defined in Illuminate\Support\ServiceProvider. Register a JSON translation file path.
  • protected void loadMigrationsFrom(array|string $paths) - defined in Illuminate\Support\ServiceProvider. Register database migration paths.
  • protected void loadRoutesFrom(string $path) - defined in Illuminate\Support\ServiceProvider. Load the given routes file if routes are not already cached.
  • protected void loadTranslationsFrom(string $path, string $namespace) - defined in Illuminate\Support\ServiceProvider. Register a translation file namespace.
  • protected void loadViewsFrom(string|array $path, string $namespace) - defined in Illuminate\Support\ServiceProvider. Register a view file namespace.
  • protected void mergeConfigFrom(string $path, string $key) - defined in Illuminate\Support\ServiceProvider. Merge the given configuration with the existing configuration.
  • protected static array pathsForProviderAndGroup(string $provider, string $group) - defined in Illuminate\Support\ServiceProvider. Get the paths for the provider and group.
  • protected static array pathsForProviderOrGroup(string|null $provider, string|null $group) - defined in Illuminate\Support\ServiceProvider. Get the paths for the provider or group (or both).
  • protected void publishes(array $paths, mixed $groups=NULL) - defined in Illuminate\Support\ServiceProvider. Register paths to be published by the publish command.