[ClassLoader] Deprecate Apc/WinCache/Xcache class loaders
This commit is contained in:
parent
24d8135f17
commit
fa36e1d377
8
UPGRADE-3.3.md
Normal file
8
UPGRADE-3.3.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
UPGRADE FROM 3.2 to 3.3
|
||||||
|
=======================
|
||||||
|
|
||||||
|
ClassLoader
|
||||||
|
-----------
|
||||||
|
|
||||||
|
* The ApcClassLoader, WinCacheClassLoader and XcacheClassLoader classes have been deprecated
|
||||||
|
in favor of the `--apcu-autoloader` option introduced in composer 1.3
|
@ -1,6 +1,12 @@
|
|||||||
UPGRADE FROM 3.x to 4.0
|
UPGRADE FROM 3.x to 4.0
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
|
ClassLoader
|
||||||
|
-----------
|
||||||
|
|
||||||
|
* The ApcClassLoader, WinCacheClassLoader and XcacheClassLoader classes have been removed
|
||||||
|
in favor of the `--apcu-autoloader` option introduced in composer 1.3
|
||||||
|
|
||||||
Console
|
Console
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@
|
|||||||
<argument>Symfony\Component\HttpFoundation\Request</argument>
|
<argument>Symfony\Component\HttpFoundation\Request</argument>
|
||||||
<argument>Symfony\Component\HttpKernel\Kernel</argument>
|
<argument>Symfony\Component\HttpKernel\Kernel</argument>
|
||||||
<argument>Symfony\Component\ClassLoader\ClassCollectionLoader</argument>
|
<argument>Symfony\Component\ClassLoader\ClassCollectionLoader</argument>
|
||||||
<argument>Symfony\Component\ClassLoader\ApcClassLoader</argument>
|
|
||||||
</argument>
|
</argument>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\ClassLoader;
|
namespace Symfony\Component\ClassLoader;
|
||||||
|
|
||||||
|
@trigger_error('The '.__NAMESPACE__.'\ApcClassLoader class is deprecated since version 3.3 and will be removed in 4.0. Use `composer install --apcu-autoloader` instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ApcClassLoader implements a wrapping autoloader cached in APC for PHP 5.3.
|
* ApcClassLoader implements a wrapping autoloader cached in APC for PHP 5.3.
|
||||||
*
|
*
|
||||||
@ -44,6 +46,8 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Kris Wallsmith <kris@symfony.com>
|
* @author Kris Wallsmith <kris@symfony.com>
|
||||||
|
*
|
||||||
|
* @deprecated since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead.
|
||||||
*/
|
*/
|
||||||
class ApcClassLoader
|
class ApcClassLoader
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
3.3.0
|
||||||
|
-----
|
||||||
|
|
||||||
|
* The ApcClassLoader, WinCacheClassLoader and XcacheClassLoader classes have been deprecated
|
||||||
|
in favor of the `--apcu-autoloader` option introduced in composer 1.3
|
||||||
|
|
||||||
3.0.0
|
3.0.0
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
@ -14,6 +14,9 @@ namespace Symfony\Component\ClassLoader\Tests;
|
|||||||
use Symfony\Component\ClassLoader\ApcClassLoader;
|
use Symfony\Component\ClassLoader\ApcClassLoader;
|
||||||
use Symfony\Component\ClassLoader\ClassLoader;
|
use Symfony\Component\ClassLoader\ClassLoader;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @group legacy
|
||||||
|
*/
|
||||||
class ApcClassLoaderTest extends \PHPUnit_Framework_TestCase
|
class ApcClassLoaderTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\ClassLoader;
|
namespace Symfony\Component\ClassLoader;
|
||||||
|
|
||||||
|
@trigger_error('The '.__NAMESPACE__.'\WinCacheClassLoader class is deprecated since version 3.3 and will be removed in 4.0. Use `composer install --apcu-autoloader` instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WinCacheClassLoader implements a wrapping autoloader cached in WinCache.
|
* WinCacheClassLoader implements a wrapping autoloader cached in WinCache.
|
||||||
*
|
*
|
||||||
@ -43,6 +45,8 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Kris Wallsmith <kris@symfony.com>
|
* @author Kris Wallsmith <kris@symfony.com>
|
||||||
* @author Artem Ryzhkov <artem@smart-core.org>
|
* @author Artem Ryzhkov <artem@smart-core.org>
|
||||||
|
*
|
||||||
|
* @deprecated since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead.
|
||||||
*/
|
*/
|
||||||
class WinCacheClassLoader
|
class WinCacheClassLoader
|
||||||
{
|
{
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\ClassLoader;
|
namespace Symfony\Component\ClassLoader;
|
||||||
|
|
||||||
|
@trigger_error('The '.__NAMESPACE__.'\XcacheClassLoader class is deprecated since version 3.3 and will be removed in 4.0. Use `composer install --apcu-autoloader` instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XcacheClassLoader implements a wrapping autoloader cached in XCache for PHP 5.3.
|
* XcacheClassLoader implements a wrapping autoloader cached in XCache for PHP 5.3.
|
||||||
*
|
*
|
||||||
@ -43,6 +45,8 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
* @author Kris Wallsmith <kris@symfony.com>
|
* @author Kris Wallsmith <kris@symfony.com>
|
||||||
* @author Kim Hemsø Rasmussen <kimhemsoe@gmail.com>
|
* @author Kim Hemsø Rasmussen <kimhemsoe@gmail.com>
|
||||||
|
*
|
||||||
|
* @deprecated since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead.
|
||||||
*/
|
*/
|
||||||
class XcacheClassLoader
|
class XcacheClassLoader
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user