upgrade to laravel 7 and set branch to v2
This commit is contained in:
37
vendor/symfony/http-kernel/KernelInterface.php
vendored
37
vendor/symfony/http-kernel/KernelInterface.php
vendored
@@ -20,9 +20,11 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface;
|
||||
*
|
||||
* It manages an environment made of application kernel and bundles.
|
||||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
* @method string getBuildDir() Returns the build directory - not implementing it is deprecated since Symfony 5.2.
|
||||
* This directory should be used to store build artifacts, and can be read-only at runtime.
|
||||
* Caches written at runtime should be stored in the "cache directory" ({@see KernelInterface::getCacheDir()}).
|
||||
*
|
||||
* @method string getProjectDir() Gets the project dir (path of the project's composer file) - not defining it is deprecated since Symfony 4.2
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
*/
|
||||
interface KernelInterface extends HttpKernelInterface
|
||||
{
|
||||
@@ -60,13 +62,11 @@ interface KernelInterface extends HttpKernelInterface
|
||||
/**
|
||||
* Returns a bundle.
|
||||
*
|
||||
* @param string $name Bundle name
|
||||
*
|
||||
* @return BundleInterface A BundleInterface instance
|
||||
*
|
||||
* @throws \InvalidArgumentException when the bundle is not enabled
|
||||
*/
|
||||
public function getBundle($name);
|
||||
public function getBundle(string $name);
|
||||
|
||||
/**
|
||||
* Returns the file path for a given bundle resource.
|
||||
@@ -80,23 +80,12 @@ interface KernelInterface extends HttpKernelInterface
|
||||
* where BundleName is the name of the bundle
|
||||
* and the remaining part is the relative path in the bundle.
|
||||
*
|
||||
* @param string $name A resource name to locate
|
||||
*
|
||||
* @return string|array The absolute path of the resource or an array if $first is false (array return value is deprecated)
|
||||
* @return string The absolute path of the resource
|
||||
*
|
||||
* @throws \InvalidArgumentException if the file cannot be found or the name is not valid
|
||||
* @throws \RuntimeException if the name contains invalid/unsafe characters
|
||||
*/
|
||||
public function locateResource($name/*, $dir = null, $first = true*/);
|
||||
|
||||
/**
|
||||
* Gets the name of the kernel.
|
||||
*
|
||||
* @return string The kernel name
|
||||
*
|
||||
* @deprecated since Symfony 4.2
|
||||
*/
|
||||
public function getName();
|
||||
public function locateResource(string $name);
|
||||
|
||||
/**
|
||||
* Gets the environment.
|
||||
@@ -113,13 +102,11 @@ interface KernelInterface extends HttpKernelInterface
|
||||
public function isDebug();
|
||||
|
||||
/**
|
||||
* Gets the application root dir (path of the project's Kernel class).
|
||||
* Gets the project dir (path of the project's composer file).
|
||||
*
|
||||
* @return string The Kernel root dir
|
||||
*
|
||||
* @deprecated since Symfony 4.2
|
||||
* @return string
|
||||
*/
|
||||
public function getRootDir();
|
||||
public function getProjectDir();
|
||||
|
||||
/**
|
||||
* Gets the current container.
|
||||
@@ -138,6 +125,10 @@ interface KernelInterface extends HttpKernelInterface
|
||||
/**
|
||||
* Gets the cache directory.
|
||||
*
|
||||
* Since Symfony 5.2, the cache directory should be used for caches that are written at runtime.
|
||||
* For caches and artifacts that can be warmed at compile-time and deployed as read-only,
|
||||
* use the new "build directory" returned by the {@see getBuildDir()} method.
|
||||
*
|
||||
* @return string The cache directory
|
||||
*/
|
||||
public function getCacheDir();
|
||||
|
||||
Reference in New Issue
Block a user