Attribute
2 years ago
Bundle
1 year ago
CacheClearer
2 years ago
CacheWarmer
1 year ago
Config
1 year ago
Controller
1 year ago
ControllerMetadata
1 year ago
DataCollector
1 year ago
Debug
1 year ago
DependencyInjection
1 year ago
Event
1 year ago
EventListener
1 year ago
Exception
1 year ago
Fragment
1 year ago
HttpCache
1 year ago
Log
1 year ago
Profiler
1 year ago
Resources
2 years ago
HttpClientKernel.php
1 year ago
HttpKernel.php
1 year ago
HttpKernelBrowser.php
1 year ago
HttpKernelInterface.php
1 year ago
Kernel.php
3 months ago
KernelEvents.php
2 years ago
KernelInterface.php
2 years ago
LICENSE
2 years ago
README.md
2 years ago
RebootableInterface.php
2 years ago
TerminableInterface.php
2 years ago
UriSigner.php
1 year ago
KernelInterface.php
134 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace Matomo\Dependencies\Symfony\Component\HttpKernel; |
| 12 | |
| 13 | use Symfony\Component\Config\Loader\LoaderInterface; |
| 14 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 15 | use Matomo\Dependencies\Symfony\Component\HttpKernel\Bundle\BundleInterface; |
| 16 | /** |
| 17 | * The Kernel is the heart of the Symfony system. |
| 18 | * |
| 19 | * It manages an environment made of application kernel and bundles. |
| 20 | * |
| 21 | * @method string getBuildDir() Returns the build directory - not implementing it is deprecated since Symfony 5.2. |
| 22 | * This directory should be used to store build artifacts, and can be read-only at runtime. |
| 23 | * Caches written at runtime should be stored in the "cache directory" ({@see KernelInterface::getCacheDir()}). |
| 24 | * |
| 25 | * @author Fabien Potencier <fabien@symfony.com> |
| 26 | */ |
| 27 | interface KernelInterface extends HttpKernelInterface |
| 28 | { |
| 29 | /** |
| 30 | * Returns an array of bundles to register. |
| 31 | * |
| 32 | * @return iterable<mixed, BundleInterface> |
| 33 | */ |
| 34 | public function registerBundles(); |
| 35 | /** |
| 36 | * Loads the container configuration. |
| 37 | */ |
| 38 | public function registerContainerConfiguration(LoaderInterface $loader); |
| 39 | /** |
| 40 | * Boots the current kernel. |
| 41 | */ |
| 42 | public function boot(); |
| 43 | /** |
| 44 | * Shutdowns the kernel. |
| 45 | * |
| 46 | * This method is mainly useful when doing functional testing. |
| 47 | */ |
| 48 | public function shutdown(); |
| 49 | /** |
| 50 | * Gets the registered bundle instances. |
| 51 | * |
| 52 | * @return array<string, BundleInterface> |
| 53 | */ |
| 54 | public function getBundles(); |
| 55 | /** |
| 56 | * Returns a bundle. |
| 57 | * |
| 58 | * @return BundleInterface |
| 59 | * |
| 60 | * @throws \InvalidArgumentException when the bundle is not enabled |
| 61 | */ |
| 62 | public function getBundle(string $name); |
| 63 | /** |
| 64 | * Returns the file path for a given bundle resource. |
| 65 | * |
| 66 | * A Resource can be a file or a directory. |
| 67 | * |
| 68 | * The resource name must follow the following pattern: |
| 69 | * |
| 70 | * "@BundleName/path/to/a/file.something" |
| 71 | * |
| 72 | * where BundleName is the name of the bundle |
| 73 | * and the remaining part is the relative path in the bundle. |
| 74 | * |
| 75 | * @return string |
| 76 | * |
| 77 | * @throws \InvalidArgumentException if the file cannot be found or the name is not valid |
| 78 | * @throws \RuntimeException if the name contains invalid/unsafe characters |
| 79 | */ |
| 80 | public function locateResource(string $name); |
| 81 | /** |
| 82 | * Gets the environment. |
| 83 | * |
| 84 | * @return string |
| 85 | */ |
| 86 | public function getEnvironment(); |
| 87 | /** |
| 88 | * Checks if debug mode is enabled. |
| 89 | * |
| 90 | * @return bool |
| 91 | */ |
| 92 | public function isDebug(); |
| 93 | /** |
| 94 | * Gets the project dir (path of the project's composer file). |
| 95 | * |
| 96 | * @return string |
| 97 | */ |
| 98 | public function getProjectDir(); |
| 99 | /** |
| 100 | * Gets the current container. |
| 101 | * |
| 102 | * @return ContainerInterface |
| 103 | */ |
| 104 | public function getContainer(); |
| 105 | /** |
| 106 | * Gets the request start time (not available if debug is disabled). |
| 107 | * |
| 108 | * @return float |
| 109 | */ |
| 110 | public function getStartTime(); |
| 111 | /** |
| 112 | * Gets the cache directory. |
| 113 | * |
| 114 | * Since Symfony 5.2, the cache directory should be used for caches that are written at runtime. |
| 115 | * For caches and artifacts that can be warmed at compile-time and deployed as read-only, |
| 116 | * use the new "build directory" returned by the {@see getBuildDir()} method. |
| 117 | * |
| 118 | * @return string |
| 119 | */ |
| 120 | public function getCacheDir(); |
| 121 | /** |
| 122 | * Gets the log directory. |
| 123 | * |
| 124 | * @return string |
| 125 | */ |
| 126 | public function getLogDir(); |
| 127 | /** |
| 128 | * Gets the charset of the application. |
| 129 | * |
| 130 | * @return string |
| 131 | */ |
| 132 | public function getCharset(); |
| 133 | } |
| 134 |