KernelInterface
interface KernelInterface implements HttpKernelInterface, Serializable
The Kernel is the heart of the Symfony system.
It manages an environment made of application kernel and bundles.
Methods
Handles a Request to convert it to a Response.
Returns an array of bundles to register.
Boots the current kernel.
Shutdowns the kernel.
Gets the registered bundle instances.
Returns a bundle.
Returns the file path for a given bundle resource.
Gets the environment.
Checks if debug mode is enabled.
Gets the current container.
Gets the request start time (not available if debug is disabled).
Gets the cache directory.
Gets the log directory.
Gets the charset of the application.
Gets the project dir (path of the project's composer file) - not defining it is deprecated since Symfony 4.2
Details
Response
handle(Request $request, int $type = self::MASTER_REQUEST, bool $catch = true)
Handles a Request to convert it to a Response.
When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance.
string|array
locateResource(string $name, string $dir = null, bool $first = true)
Returns the file path for a given bundle resource.
A Resource can be a file or a directory.
The resource name must follow the following pattern:
"@BundleName/path/to/a/file.something"
where BundleName is the name of the bundle and the remaining part is the relative path in the bundle.
If $dir is passed, and the first segment of the path is "Resources", this method will look for a file named:
$dir/<BundleName>/path/without/Resources
before looking in the bundle resource folder.