Skip to content

Commit

Permalink
Temporarily remove deprecations about ns move
Browse files Browse the repository at this point in the history
We want to give ourselves time to address them in the other packages we
own and that consume this library.
Not doing so generates a lot of support from people asking how they can
fix the deprecations in their application, which they cannot. This
commit should be reverted in a following release, when at least all of
our packages have made the move.
  • Loading branch information
greg0ire committed Jan 8, 2020
1 parent 99b196b commit 132709c
Show file tree
Hide file tree
Showing 31 changed files with 0 additions and 465 deletions.
15 changes: 0 additions & 15 deletions lib/Doctrine/Common/NotifyPropertyChanged.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common;

use const E_USER_DEPRECATED;
use function class_alias;
use function interface_exists;
use function sprintf;
use function trigger_error;

if (! interface_exists(\Doctrine\Persistence\NotifyPropertyChanged::class, false)) {
@trigger_error(sprintf(
'The %s\NotifyPropertyChanged class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\NotifyPropertyChanged instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\NotifyPropertyChanged::class,
__NAMESPACE__ . '\NotifyPropertyChanged'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\NotifyPropertyChanged
*/
interface NotifyPropertyChanged extends \Doctrine\Persistence\NotifyPropertyChanged
{
}
Expand Down
15 changes: 0 additions & 15 deletions lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence;

use const E_USER_DEPRECATED;
use function class_alias;
use function class_exists;
use function sprintf;
use function trigger_error;

if (! class_exists(\Doctrine\Persistence\AbstractManagerRegistry::class, false)) {
@trigger_error(sprintf(
'The %s\AbstractManagerRegistry class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\AbstractManagerRegistry instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\AbstractManagerRegistry::class,
__NAMESPACE__ . '\AbstractManagerRegistry'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\AbstractManagerRegistry
*/
abstract class AbstractManagerRegistry extends \Doctrine\Persistence\AbstractManagerRegistry
{
}
Expand Down
15 changes: 0 additions & 15 deletions lib/Doctrine/Common/Persistence/ConnectionRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence;

use const E_USER_DEPRECATED;
use function class_alias;
use function interface_exists;
use function sprintf;
use function trigger_error;

if (! interface_exists(\Doctrine\Persistence\ConnectionRegistry::class, false)) {
@trigger_error(sprintf(
'The %s\ConnectionRegistry class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\ConnectionRegistry instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\ConnectionRegistry::class,
__NAMESPACE__ . '\ConnectionRegistry'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\ConnectionRegistry
*/
interface ConnectionRegistry extends \Doctrine\Persistence\ConnectionRegistry
{
}
Expand Down
15 changes: 0 additions & 15 deletions lib/Doctrine/Common/Persistence/Event/LifecycleEventArgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence\Event;

use const E_USER_DEPRECATED;
use function class_alias;
use function class_exists;
use function sprintf;
use function trigger_error;

if (! class_exists(\Doctrine\Persistence\Event\LifecycleEventArgs::class, false)) {
@trigger_error(sprintf(
'The %s\LifecycleEventArgs class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\Event\LifecycleEventArgs instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\Event\LifecycleEventArgs::class,
__NAMESPACE__ . '\LifecycleEventArgs'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\Event\LifecycleEventArgs
*/
class LifecycleEventArgs extends \Doctrine\Persistence\Event\LifecycleEventArgs
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence\Event;

use const E_USER_DEPRECATED;
use function class_alias;
use function class_exists;
use function sprintf;
use function trigger_error;

if (! class_exists(\Doctrine\Persistence\Event\LoadClassMetadataEventArgs::class, false)) {
@trigger_error(sprintf(
'The %s\LoadClassMetadataEventArgs class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\Event\LoadClassMetadataEventArgs instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\Event\LoadClassMetadataEventArgs::class,
__NAMESPACE__ . '\LoadClassMetadataEventArgs'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\Event\LoadClassMetadataEventArgs
*/
class LoadClassMetadataEventArgs extends \Doctrine\Persistence\Event\LoadClassMetadataEventArgs
{
}
Expand Down
15 changes: 0 additions & 15 deletions lib/Doctrine/Common/Persistence/Event/ManagerEventArgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence\Event;

use const E_USER_DEPRECATED;
use function class_alias;
use function class_exists;
use function sprintf;
use function trigger_error;

if (! class_exists(\Doctrine\Persistence\Event\ManagerEventArgs::class, false)) {
@trigger_error(sprintf(
'The %s\ManagerEventArgs class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\Event\ManagerEventArgs instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\Event\ManagerEventArgs::class,
__NAMESPACE__ . '\ManagerEventArgs'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\Event\ManagerEventArgs
*/
class ManagerEventArgs extends \Doctrine\Persistence\Event\ManagerEventArgs
{
}
Expand Down
15 changes: 0 additions & 15 deletions lib/Doctrine/Common/Persistence/Event/OnClearEventArgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence\Event;

use const E_USER_DEPRECATED;
use function class_alias;
use function class_exists;
use function sprintf;
use function trigger_error;

if (! class_exists(\Doctrine\Persistence\Event\OnClearEventArgs::class, false)) {
@trigger_error(sprintf(
'The %s\OnClearEventArgs class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\Event\OnClearEventArgs instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\Event\OnClearEventArgs::class,
__NAMESPACE__ . '\OnClearEventArgs'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\Event\OnClearEventArgs
*/
class OnClearEventArgs extends \Doctrine\Persistence\Event\OnClearEventArgs
{
}
Expand Down
15 changes: 0 additions & 15 deletions lib/Doctrine/Common/Persistence/Event/PreUpdateEventArgs.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence\Event;

use const E_USER_DEPRECATED;
use function class_alias;
use function class_exists;
use function sprintf;
use function trigger_error;

if (! class_exists(\Doctrine\Persistence\Event\PreUpdateEventArgs::class, false)) {
@trigger_error(sprintf(
'The %s\PreUpdateEventArgs class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\Event\PreUpdateEventArgs instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\Event\PreUpdateEventArgs::class,
__NAMESPACE__ . '\PreUpdateEventArgs'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\Event\PreUpdateEventArgs
*/
class PreUpdateEventArgs extends \Doctrine\Persistence\Event\PreUpdateEventArgs
{
}
Expand Down
15 changes: 0 additions & 15 deletions lib/Doctrine/Common/Persistence/ManagerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence;

use const E_USER_DEPRECATED;
use function class_alias;
use function interface_exists;
use function sprintf;
use function trigger_error;

if (! interface_exists(\Doctrine\Persistence\ManagerRegistry::class, false)) {
@trigger_error(sprintf(
'The %s\ManagerRegistry class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\ManagerRegistry instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\ManagerRegistry::class,
__NAMESPACE__ . '\ManagerRegistry'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\ManagerRegistry
*/
interface ManagerRegistry extends \Doctrine\Persistence\ManagerRegistry
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence\Mapping;

use const E_USER_DEPRECATED;
use function class_alias;
use function class_exists;
use function sprintf;
use function trigger_error;

if (! class_exists(\Doctrine\Persistence\Mapping\AbstractClassMetadataFactory::class, false)) {
@trigger_error(sprintf(
'The %s\AbstractClassMetadataFactory class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\Mapping\AbstractClassMetadataFactory instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\Mapping\AbstractClassMetadataFactory::class,
__NAMESPACE__ . '\AbstractClassMetadataFactory'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\Mapping\AbstractClassMetadataFactory
*/
class AbstractClassMetadataFactory extends \Doctrine\Persistence\Mapping\AbstractClassMetadataFactory
{
}
Expand Down
15 changes: 0 additions & 15 deletions lib/Doctrine/Common/Persistence/Mapping/ClassMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence\Mapping;

use const E_USER_DEPRECATED;
use function class_alias;
use function interface_exists;
use function sprintf;
use function trigger_error;

if (! interface_exists(\Doctrine\Persistence\Mapping\ClassMetadata::class, false)) {
@trigger_error(sprintf(
'The %s\ClassMetadata class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\Mapping\ClassMetadata instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\Mapping\ClassMetadata::class,
__NAMESPACE__ . '\ClassMetadata'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\Mapping\ClassMetadata
*/
interface ClassMetadata extends \Doctrine\Persistence\Mapping\ClassMetadata
{
}
Expand Down
15 changes: 0 additions & 15 deletions lib/Doctrine/Common/Persistence/Mapping/ClassMetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence\Mapping;

use const E_USER_DEPRECATED;
use function class_alias;
use function interface_exists;
use function sprintf;
use function trigger_error;

if (! interface_exists(\Doctrine\Persistence\Mapping\ClassMetadataFactory::class, false)) {
@trigger_error(sprintf(
'The %s\ClassMetadataFactory class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\Mapping\ClassMetadataFactory instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\Mapping\ClassMetadataFactory::class,
__NAMESPACE__ . '\ClassMetadataFactory'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\Mapping\ClassMetadataFactory
*/
interface ClassMetadataFactory extends \Doctrine\Persistence\Mapping\ClassMetadataFactory
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,14 @@

namespace Doctrine\Common\Persistence\Mapping\Driver;

use const E_USER_DEPRECATED;
use function class_alias;
use function class_exists;
use function sprintf;
use function trigger_error;

if (! class_exists(\Doctrine\Persistence\Mapping\Driver\AnnotationDriver::class, false)) {
@trigger_error(sprintf(
'The %s\AnnotationDriver class is deprecated since doctrine/persistence 1.3 and will be removed in 2.0.'
. ' Use \Doctrine\Persistence\Mapping\Driver\AnnotationDriver instead.',
__NAMESPACE__
), E_USER_DEPRECATED);
}

class_alias(
\Doctrine\Persistence\Mapping\Driver\AnnotationDriver::class,
__NAMESPACE__ . '\AnnotationDriver'
);

if (false) {
/**
* @deprecated 1.3 Use Doctrine\Persistence\Mapping\Driver\AnnotationDriver
*/
abstract class AnnotationDriver extends \Doctrine\Persistence\Mapping\Driver\AnnotationDriver
{
}
Expand Down
Loading

0 comments on commit 132709c

Please sign in to comment.