upgraded dependencies

This commit is contained in:
RafficMohammed
2023-01-08 01:59:16 +05:30
parent 51056e3aad
commit f9ae387337
6895 changed files with 133617 additions and 178680 deletions

View File

@@ -20,16 +20,18 @@ 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
{
/**
* Returns an array of bundles to register.
*
* @return iterable|BundleInterface[] An iterable of bundle instances
* @return iterable<mixed, BundleInterface>
*/
public function registerBundles();
@@ -53,20 +55,18 @@ interface KernelInterface extends HttpKernelInterface
/**
* Gets the registered bundle instances.
*
* @return BundleInterface[] An array of registered bundle instances
* @return array<string, BundleInterface>
*/
public function getBundles();
/**
* Returns a bundle.
*
* @param string $name Bundle name
*
* @return BundleInterface A BundleInterface instance
* @return BundleInterface
*
* @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,46 +80,33 @@ 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
*
* @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.
*
* @return string The current environment
* @return string
*/
public function getEnvironment();
/**
* Checks if debug mode is enabled.
*
* @return bool true if debug mode is enabled, false otherwise
* @return bool
*/
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.
@@ -131,28 +118,32 @@ interface KernelInterface extends HttpKernelInterface
/**
* Gets the request start time (not available if debug is disabled).
*
* @return float The request start timestamp
* @return float
*/
public function getStartTime();
/**
* Gets the cache directory.
*
* @return string 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
*/
public function getCacheDir();
/**
* Gets the log directory.
*
* @return string The log directory
* @return string
*/
public function getLogDir();
/**
* Gets the charset of the application.
*
* @return string The charset
* @return string
*/
public function getCharset();
}