Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f475f8

Browse files
committed
feature #20777 [ClassLoader] Deprecate Apc/WinCache/Xcache class loaders (nicolas-grekas)
This PR was merged into the 3.3-dev branch. Discussion ---------- [ClassLoader] Deprecate Apc/WinCache/Xcache class loaders | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | no | Fixed tickets | - | License | MIT | Doc PR | - See composer/composer#5559 Commits ------- fa36e1d [ClassLoader] Deprecate Apc/WinCache/Xcache class loaders
2 parents 4644ee9 + fa36e1d commit 9f475f8

File tree

8 files changed

+35
-1
lines changed

8 files changed

+35
-1
lines changed

UPGRADE-3.3.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
UPGRADE FROM 3.2 to 3.3
2+
=======================
3+
4+
ClassLoader
5+
-----------
6+
7+
* The ApcClassLoader, WinCacheClassLoader and XcacheClassLoader classes have been deprecated
8+
in favor of the `--apcu-autoloader` option introduced in composer 1.3

UPGRADE-4.0.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
UPGRADE FROM 3.x to 4.0
22
=======================
33

4+
ClassLoader
5+
-----------
6+
7+
* The ApcClassLoader, WinCacheClassLoader and XcacheClassLoader classes have been removed
8+
in favor of the `--apcu-autoloader` option introduced in composer 1.3
9+
410
Console
511
-------
612

src/Symfony/Bundle/FrameworkBundle/Resources/config/services.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
<argument>Symfony\Component\HttpFoundation\Request</argument>
3333
<argument>Symfony\Component\HttpKernel\Kernel</argument>
3434
<argument>Symfony\Component\ClassLoader\ClassCollectionLoader</argument>
35-
<argument>Symfony\Component\ClassLoader\ApcClassLoader</argument>
3635
</argument>
3736
</service>
3837

src/Symfony/Component/ClassLoader/ApcClassLoader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\ClassLoader;
1313

14+
@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);
15+
1416
/**
1517
* ApcClassLoader implements a wrapping autoloader cached in APC for PHP 5.3.
1618
*
@@ -44,6 +46,8 @@
4446
*
4547
* @author Fabien Potencier <[email protected]>
4648
* @author Kris Wallsmith <[email protected]>
49+
*
50+
* @deprecated since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead.
4751
*/
4852
class ApcClassLoader
4953
{

src/Symfony/Component/ClassLoader/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGELOG
22
=========
33

4+
3.3.0
5+
-----
6+
7+
* The ApcClassLoader, WinCacheClassLoader and XcacheClassLoader classes have been deprecated
8+
in favor of the `--apcu-autoloader` option introduced in composer 1.3
9+
410
3.0.0
511
-----
612

src/Symfony/Component/ClassLoader/Tests/ApcClassLoaderTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
use Symfony\Component\ClassLoader\ApcClassLoader;
1515
use Symfony\Component\ClassLoader\ClassLoader;
1616

17+
/**
18+
* @group legacy
19+
*/
1720
class ApcClassLoaderTest extends \PHPUnit_Framework_TestCase
1821
{
1922
protected function setUp()

src/Symfony/Component/ClassLoader/WinCacheClassLoader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\ClassLoader;
1313

14+
@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);
15+
1416
/**
1517
* WinCacheClassLoader implements a wrapping autoloader cached in WinCache.
1618
*
@@ -43,6 +45,8 @@
4345
* @author Fabien Potencier <[email protected]>
4446
* @author Kris Wallsmith <[email protected]>
4547
* @author Artem Ryzhkov <[email protected]>
48+
*
49+
* @deprecated since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead.
4650
*/
4751
class WinCacheClassLoader
4852
{

src/Symfony/Component/ClassLoader/XcacheClassLoader.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\ClassLoader;
1313

14+
@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);
15+
1416
/**
1517
* XcacheClassLoader implements a wrapping autoloader cached in XCache for PHP 5.3.
1618
*
@@ -43,6 +45,8 @@
4345
* @author Fabien Potencier <[email protected]>
4446
* @author Kris Wallsmith <[email protected]>
4547
* @author Kim Hemsø Rasmussen <[email protected]>
48+
*
49+
* @deprecated since version 3.3, to be removed in 4.0. Use `composer install --apcu-autoloader` instead.
4650
*/
4751
class XcacheClassLoader
4852
{

0 commit comments

Comments
 (0)