From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- .../filesystem/Exception/ExceptionInterface.php | 21 ++++++++++++ .../filesystem/Exception/FileNotFoundException.php | 34 +++++++++++++++++++ .../symfony/filesystem/Exception/IOException.php | 39 ++++++++++++++++++++++ .../filesystem/Exception/IOExceptionInterface.php | 27 +++++++++++++++ .../Exception/InvalidArgumentException.php | 19 +++++++++++ 5 files changed, 140 insertions(+) create mode 100644 srcs/phpmyadmin/vendor/symfony/filesystem/Exception/ExceptionInterface.php create mode 100644 srcs/phpmyadmin/vendor/symfony/filesystem/Exception/FileNotFoundException.php create mode 100644 srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOException.php create mode 100644 srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOExceptionInterface.php create mode 100644 srcs/phpmyadmin/vendor/symfony/filesystem/Exception/InvalidArgumentException.php (limited to 'srcs/phpmyadmin/vendor/symfony/filesystem/Exception') diff --git a/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/ExceptionInterface.php b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/ExceptionInterface.php new file mode 100644 index 0000000..fc438d9 --- /dev/null +++ b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/ExceptionInterface.php @@ -0,0 +1,21 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Filesystem\Exception; + +/** + * Exception interface for all exceptions thrown by the component. + * + * @author Romain Neutron + */ +interface ExceptionInterface extends \Throwable +{ +} diff --git a/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/FileNotFoundException.php b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/FileNotFoundException.php new file mode 100644 index 0000000..48b6408 --- /dev/null +++ b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/FileNotFoundException.php @@ -0,0 +1,34 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Filesystem\Exception; + +/** + * Exception class thrown when a file couldn't be found. + * + * @author Fabien Potencier + * @author Christian Gärtner + */ +class FileNotFoundException extends IOException +{ + public function __construct(string $message = null, int $code = 0, \Throwable $previous = null, string $path = null) + { + if (null === $message) { + if (null === $path) { + $message = 'File could not be found.'; + } else { + $message = sprintf('File "%s" could not be found.', $path); + } + } + + parent::__construct($message, $code, $previous, $path); + } +} diff --git a/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOException.php b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOException.php new file mode 100644 index 0000000..fea26e4 --- /dev/null +++ b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOException.php @@ -0,0 +1,39 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Filesystem\Exception; + +/** + * Exception class thrown when a filesystem operation failure happens. + * + * @author Romain Neutron + * @author Christian Gärtner + * @author Fabien Potencier + */ +class IOException extends \RuntimeException implements IOExceptionInterface +{ + private $path; + + public function __construct(string $message, int $code = 0, \Throwable $previous = null, string $path = null) + { + $this->path = $path; + + parent::__construct($message, $code, $previous); + } + + /** + * {@inheritdoc} + */ + public function getPath() + { + return $this->path; + } +} diff --git a/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOExceptionInterface.php b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOExceptionInterface.php new file mode 100644 index 0000000..f9d4644 --- /dev/null +++ b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/IOExceptionInterface.php @@ -0,0 +1,27 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Filesystem\Exception; + +/** + * IOException interface for file and input/output stream related exceptions thrown by the component. + * + * @author Christian Gärtner + */ +interface IOExceptionInterface extends ExceptionInterface +{ + /** + * Returns the associated path for the exception. + * + * @return string|null The path + */ + public function getPath(); +} diff --git a/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/InvalidArgumentException.php b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/InvalidArgumentException.php new file mode 100644 index 0000000..abadc20 --- /dev/null +++ b/srcs/phpmyadmin/vendor/symfony/filesystem/Exception/InvalidArgumentException.php @@ -0,0 +1,19 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Filesystem\Exception; + +/** + * @author Christian Flothmann + */ +class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface +{ +} -- cgit