KernelInterface::getLogDir()

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

KernelInterface::getEnvironment()

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

KernelInterface::getContainer()

ContainerInterface getContainer() Gets the current container. Return Value ContainerInterface A ContainerInterface instance

KernelInterface::getCharset()

string getCharset() Gets the charset of the application. Return Value string The charset

KernelInterface::getCacheDir()

string getCacheDir() Gets the cache directory. Return Value string The cache directory

KernelInterface::getBundles()

BundleInterface[] getBundles() Gets the registered bundle instances. Return Value BundleInterface[] An array of registered bundle instances

KernelInterface::getBundle()

BundleInterface|BundleInterface[] getBundle(string $name, bool $first = true) Returns a bundle and optionally its descendants by its name. Parameters string $name Bundle name bool $first Whether to return the first bundle only or together with its descendants Return Value BundleInterface|BundleInterface[] A BundleInterface instance or an array of BundleInterface instances if $first is false Exceptions InvalidArgumentException when the bundle is not enabled

KernelInterface::boot()

boot() Boots the current kernel.

KernelInterface

interface KernelInterface implements HttpKernelInterface, Serializable The Kernel is the heart of the Symfony system. It manages an environment made of bundles. Methods Response handle(Request $request, int $type = self::MASTER_REQUEST, bool $catch = true) Handles a Request to convert it to a Response. from HttpKernelInterface BundleInterface[] registerBundles() Returns an array of bundles to register. registerContainerConfiguration(LoaderInterface $loader) Loads the container c

KernelEvents

class KernelEvents Contains all events thrown in the HttpKernel component. Constants REQUEST The REQUEST event occurs at the very beginning of request dispatching. This event allows you to create a response for a request before any other code in the framework is executed. EXCEPTION The EXCEPTION event occurs when an uncaught exception appears. This event allows you to create a response for a thrown exception or to modify the thrown exception. VIEW The VIEW event occurs when the return