Revert "minor #32054 Prepare for PHP 7.4 preload (nicolas-grekas)"

This reverts commit a0aa94114a7b0334f94eb53c7536c729c1be2fef, reversing
changes made to 8496003634906d220ee1bc95f1547ced64545ffa.
This commit is contained in:
Nicolas Grekas
2019-06-20 08:42:33 +02:00
parent 9f25d9dcde
commit d5a46e4aab
9 changed files with 22 additions and 118 deletions

View File

@@ -1,19 +0,0 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Cache\Exception;
use Psr\Cache\CacheException as Psr6CacheInterface;
use Psr\SimpleCache\CacheException as SimpleCacheInterface;
class CacheException extends \Exception implements Psr6CacheInterface, SimpleCacheInterface
{
}

View File

@@ -1,18 +0,0 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Cache\Exception;
use Psr\Cache\CacheException as Psr6CacheInterface;
class CacheException extends \Exception implements Psr6CacheInterface
{
}

View File

@@ -11,10 +11,15 @@
namespace Symfony\Component\Cache\Exception;
use Psr\Cache\CacheException as Psr6CacheInterface;
use Psr\SimpleCache\CacheException as SimpleCacheInterface;
if (interface_exists(SimpleCacheInterface::class)) {
require __DIR__.\DIRECTORY_SEPARATOR.'CacheException+psr16.php';
class CacheException extends \Exception implements Psr6CacheInterface, SimpleCacheInterface
{
}
} else {
require __DIR__.\DIRECTORY_SEPARATOR.'CacheException-psr16.php';
class CacheException extends \Exception implements Psr6CacheInterface
{
}
}

View File

@@ -1,19 +0,0 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Cache\Exception;
use Psr\Cache\InvalidArgumentException as Psr6CacheInterface;
use Psr\SimpleCache\InvalidArgumentException as SimpleCacheInterface;
class InvalidArgumentException extends \InvalidArgumentException implements Psr6CacheInterface, SimpleCacheInterface
{
}

View File

@@ -1,18 +0,0 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Cache\Exception;
use Psr\Cache\InvalidArgumentException as Psr6CacheInterface;
class InvalidArgumentException extends \InvalidArgumentException implements Psr6CacheInterface
{
}

View File

@@ -11,10 +11,15 @@
namespace Symfony\Component\Cache\Exception;
use Psr\Cache\InvalidArgumentException as Psr6CacheInterface;
use Psr\SimpleCache\InvalidArgumentException as SimpleCacheInterface;
if (interface_exists(SimpleCacheInterface::class)) {
require __DIR__.\DIRECTORY_SEPARATOR.'InvalidArgumentException+psr16.php';
class InvalidArgumentException extends \InvalidArgumentException implements Psr6CacheInterface, SimpleCacheInterface
{
}
} else {
require __DIR__.\DIRECTORY_SEPARATOR.'InvalidArgumentException-psr16.php';
class InvalidArgumentException extends \InvalidArgumentException implements Psr6CacheInterface
{
}
}

View File

@@ -1,19 +0,0 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Cache\Exception;
use Psr\Cache\CacheException as Psr6CacheInterface;
use Psr\SimpleCache\CacheException as SimpleCacheInterface;
class LogicException extends \LogicException implements Psr6CacheInterface, SimpleCacheInterface
{
}

View File

@@ -1,18 +0,0 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Cache\Exception;
use Psr\Cache\CacheException as Psr6CacheInterface;
class LogicException extends \LogicException implements Psr6CacheInterface
{
}

View File

@@ -11,10 +11,15 @@
namespace Symfony\Component\Cache\Exception;
use Psr\SimpleCache\LogicException as SimpleCacheInterface;
use Psr\Cache\CacheException as Psr6CacheInterface;
use Psr\SimpleCache\CacheException as SimpleCacheInterface;
if (interface_exists(SimpleCacheInterface::class)) {
require __DIR__.\DIRECTORY_SEPARATOR.'LogicException+psr16.php';
class LogicException extends \LogicException implements Psr6CacheInterface, SimpleCacheInterface
{
}
} else {
require __DIR__.\DIRECTORY_SEPARATOR.'LogicException-psr16.php';
class LogicException extends \LogicException implements Psr6CacheInterface
{
}
}