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

Skip to content

Commit 19968bb

Browse files
[ClassLoader] Deprecate ApcClassLoader
1 parent 24d8135 commit 19968bb

File tree

5 files changed

+24
-0
lines changed

5 files changed

+24
-0
lines changed

UPGRADE-3.3.md

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

UPGRADE-4.0.md

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

4+
ClassLoader
5+
-----------
6+
7+
* `ApcClassLoader` has been removed in favor of the `--apcu-autoloader` option introduced in composer 1.3
8+
49
Console
510
-------
611

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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
3.3.0
5+
-----
6+
7+
* The ApcClassLoader has been deprecated in favor of the `--apcu-autoloader` option introduced in composer 1.3
8+
49
3.0.0
510
-----
611

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()

0 commit comments

Comments
 (0)