-
-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #845 from Majkl578/deprecations
doctrine/common deprecations (soft)
- Loading branch information
Showing
18 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<?php | ||
namespace Doctrine\Common; | ||
|
||
use function trigger_error; | ||
use const E_USER_DEPRECATED; | ||
|
||
@trigger_error(ClassLoader::class . ' is deprecated.', E_USER_DEPRECATED); | ||
|
||
/** | ||
* A <tt>ClassLoader</tt> is an autoloader for class files that can be | ||
* installed on the SPL autoload stack. It is a class loader that either loads only classes | ||
|
@@ -13,7 +18,7 @@ | |
* @author Roman Borschel <[email protected]> | ||
* @since 2.0 | ||
* | ||
* @deprecated the ClassLoader is deprecated and will be removed in version 3.0 of doctrine/common. | ||
* @deprecated The ClassLoader is deprecated and will be removed in version 3.0 of doctrine/common. | ||
*/ | ||
class ClassLoader | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,10 @@ | |
namespace Doctrine\Common; | ||
|
||
use Doctrine\Common\Lexer\AbstractLexer; | ||
use function trigger_error; | ||
use const E_USER_DEPRECATED; | ||
|
||
@trigger_error(Lexer::class . ' is deprecated.', E_USER_DEPRECATED); | ||
|
||
/** | ||
* Base class for writing simple lexers, i.e. for creating small DSLs. | ||
|
@@ -13,6 +17,8 @@ | |
* @author Guilherme Blanco <[email protected]> | ||
* @author Jonathan Wage <[email protected]> | ||
* @author Roman Borschel <[email protected]> | ||
* | ||
* @deprecated Use Doctrine\Common\Lexer\AbstractLexer from doctrine/lexer package instead. | ||
*/ | ||
abstract class Lexer extends AbstractLexer | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ | |
* Abstract factory for proxy objects. | ||
* | ||
* @author Benjamin Eberlei <[email protected]> | ||
* | ||
* @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead. | ||
*/ | ||
abstract class AbstractProxyFactory | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ | |
* Special Autoloader for Proxy classes, which are not PSR-0 compliant. | ||
* | ||
* @author Benjamin Eberlei <[email protected]> | ||
* | ||
* @internal | ||
* | ||
* @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead. | ||
*/ | ||
class Autoloader | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
* @link www.doctrine-project.org | ||
* @since 2.4 | ||
* @author Marco Pivetta <[email protected]> | ||
* | ||
* @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead. | ||
*/ | ||
class InvalidArgumentException extends BaseInvalidArgumentException implements ProxyException | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ | |
* | ||
* @link www.doctrine-project.org | ||
* @author Fredrik Wendel <[email protected]> | ||
* | ||
* @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead. | ||
*/ | ||
class OutOfBoundsException extends BaseOutOfBoundsException implements ProxyException | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ | |
* @link www.doctrine-project.org | ||
* @since 2.4 | ||
* @author Marco Pivetta <[email protected]> | ||
* | ||
* @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead. | ||
*/ | ||
interface ProxyException | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
* @link www.doctrine-project.org | ||
* @since 2.4 | ||
* @author Marco Pivetta <[email protected]> | ||
* | ||
* @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead. | ||
*/ | ||
class UnexpectedValueException extends BaseUnexpectedValueException implements ProxyException | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
* @author Roman Borschel <[email protected]> | ||
* @author Marco Pivetta <[email protected]> | ||
* @since 2.4 | ||
* | ||
* @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead. | ||
*/ | ||
interface Proxy extends BaseProxy | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
* Definition structure how to create a proxy. | ||
* | ||
* @author Benjamin Eberlei <[email protected]> | ||
* | ||
* @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead. | ||
*/ | ||
class ProxyDefinition | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ | |
* | ||
* @author Marco Pivetta <[email protected]> | ||
* @since 2.4 | ||
* | ||
* @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead. | ||
*/ | ||
class ProxyGenerator | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ | |
* | ||
* @author Benjamin Eberlei <[email protected]> | ||
* @author Johannes Schmitt <[email protected]> | ||
* | ||
* @deprecated The ClassUtils class is deprecated. | ||
*/ | ||
class ClassUtils | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ | |
* @author Jonathan Wage <[email protected]> | ||
* @author Roman Borschel <[email protected]> | ||
* @author Giorgio Sironi <[email protected]> | ||
* | ||
* @deprecated The Debug class is deprecated, please use symfony/var-dumper instead. | ||
*/ | ||
final class Debug | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
* @author Guilherme Blanco <[email protected]> | ||
* @author Jonathan Wage <[email protected]> | ||
* @author Roman Borschel <[email protected]> | ||
* | ||
* @deprecated The Version class is deprecated, please refrain from checking the version of doctrine/common. | ||
*/ | ||
class Version | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters