Kernel::serialize()

serialize()

Kernel::locateResource()

string|array locateResource(string $name, string $dir = null, bool $first = true) Returns the file path for a given 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/<Bund

Kernel::loadClassCache()

loadClassCache(string $name = 'classes', string $extension = '.php') Loads the PHP class cache. This methods only registers the fact that you want to load the cache classes. The cache will actually only be loaded when the Kernel is booted. That optimization is mainly useful when using the HttpCache class in which case the class cache is not loaded if the Response is in the cache. Parameters string $name The cache name prefix string $extension File extension of the resulting file

Kernel::isDebug()

bool isDebug() Checks if debug mode is enabled. Return Value bool true if debug mode is enabled, false otherwise

Kernel::handle()

Response handle(Request $request, int $type = HttpKernelInterface::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. Parameters Request $request A Request instance int $type The type of the request (one of HttpKernelInterface::MASTERREQUEST or HttpKernelInterface::SUBREQUEST) bool $catch Whether to catch exceptions or not Re

Kernel::getStartTime()

int getStartTime() Gets the request start time (not available if debug is disabled). Return Value int The request start timestamp

Kernel::getRootDir()

string getRootDir() Gets the application root dir. Return Value string The application root dir

Kernel::getName()

string getName() Gets the name of the kernel. Return Value string The kernel name

Kernel::getLogDir()

string getLogDir() Gets the log directory. Return Value string The log directory

Kernel::getEnvironment()

string getEnvironment() Gets the environment. Return Value string The current environment