ViewServiceProvider
class ViewServiceProvider extends ServiceProvider (View source)
Properties
protected Application | $app | The application instance. | from ServiceProvider |
protected bool | $defer | Indicates if loading of the provider is deferred. | from ServiceProvider |
Methods
void | __construct(Application $app) Create a new service provider instance. | from ServiceProvider |
void | boot() Bootstrap the application events. | from ServiceProvider |
void | register() Register the service provider. | |
void | package(string $package, string $namespace = null, string $path = null) Register the package's component namespaces. | from ServiceProvider |
string | guessPackagePath() Guess the package path for the provider. | from ServiceProvider |
string | getPackageNamespace(string $package, string $namespace) Determine the namespace for a package. | from ServiceProvider |
void | commands(array $commands) Register the package's custom Artisan commands. | from ServiceProvider |
string | getAppViewPath(string $package) Get the application package view path. | from ServiceProvider |
array | provides() Get the services provided by the provider. | from ServiceProvider |
array | when() Get the events that trigger this service provider to register. | from ServiceProvider |
bool | isDeferred() Determine if the provider is deferred. | from ServiceProvider |
void | registerEngineResolver() Register the engine resolver instance. | |
void | registerPhpEngine(EngineResolver $resolver) Register the PHP engine implementation. | |
void | registerBladeEngine(EngineResolver $resolver) Register the Blade engine implementation. | |
void | registerViewFinder() Register the view finder implementation. | |
void | registerFactory() Register the view environment. | |
void | registerSessionBinder() Register the session binder for the view environment. | |
bool | sessionHasErrors(Application $app) Determine if the application session has errors. |
Details
void __construct(Application $app)
Create a new service provider instance.
void boot()
Bootstrap the application events.
void register()
Register the service provider.
void package(string $package, string $namespace = null, string $path = null)
Register the package's component namespaces.
string guessPackagePath()
Guess the package path for the provider.
protected string getPackageNamespace(string $package, string $namespace)
Determine the namespace for a package.
void commands(array $commands)
Register the package's custom Artisan commands.
protected string getAppViewPath(string $package)
Get the application package view path.
array provides()
Get the services provided by the provider.
array when()
Get the events that trigger this service provider to register.
bool isDeferred()
Determine if the provider is deferred.
void registerEngineResolver()
Register the engine resolver instance.
void registerPhpEngine(EngineResolver $resolver)
Register the PHP engine implementation.
void registerBladeEngine(EngineResolver $resolver)
Register the Blade engine implementation.
void registerViewFinder()
Register the view finder implementation.
void registerFactory()
Register the view environment.
protected void registerSessionBinder()
Register the session binder for the view environment.
bool sessionHasErrors(Application $app)
Determine if the application session has errors.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/View/ViewServiceProvider.html