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

Skip to content

Commit 6f57b7b

Browse files
author
Hugo Hamon
committed
Reverted trigger_error() function calls on deprecated interfaces to prevent breaking third party projects implementing them.
1 parent 86b9f6b commit 6f57b7b

15 files changed

+0
-30
lines changed

src/Symfony/Component/Form/Extension/Csrf/CsrfProvider/CsrfProviderInterface.php

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

1212
namespace Symfony\Component\Form\Extension\Csrf\CsrfProvider;
1313

14-
trigger_error('The '.__NAMESPACE__.'\CsrfProviderInterface interface is deprecated since version 2.4 and will be removed in version 3.0. Use the Symfony\Component\Security\Csrf\CsrfTokenManagerInterface interface instead.', E_USER_DEPRECATED);
15-
1614
/**
1715
* Marks classes able to provide CSRF protection.
1816
*

src/Symfony/Component/HttpKernel/HttpCache/EsiResponseCacheStrategyInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
namespace Symfony\Component\HttpKernel\HttpCache;
1717

18-
trigger_error('The '.__NAMESPACE__.'\EsiResponseCacheStrategyInterface interface is deprecated since version 2.6 and will be removed in 3.0. Use the Symfony\Component\HttpKernel\HttpCache\ResponseCacheStrategyInterface interface instead.', E_USER_DEPRECATED);
19-
2018
/**
2119
* ResponseCacheStrategyInterface implementations know how to compute the
2220
* Response cache HTTP header based on the different response cache headers.

src/Symfony/Component/HttpKernel/Log/LoggerInterface.php

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

1212
namespace Symfony\Component\HttpKernel\Log;
1313

14-
trigger_error('The '.__NAMESPACE__.'\LoggerInterface interface is deprecated since version 2.2 and will be removed in 3.0. Type-hint with the \Psr\Log\LoggerInterface interface instead.', E_USER_DEPRECATED);
15-
1614
use Psr\Log\LoggerInterface as PsrLogger;
1715

1816
/**

src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php

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

1212
namespace Symfony\Component\OptionsResolver;
1313

14-
trigger_error('The '.__NAMESPACE__.'\OptionsResolverInterface interface is deprecated since version 2.6 and will be removed in 3.0. Use the Symfony\Component\OptionsResolver\OptionsResolver class instead.', E_USER_DEPRECATED);
15-
1614
use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
1715
use Symfony\Component\OptionsResolver\Exception\MissingOptionsException;
1816
use Symfony\Component\OptionsResolver\Exception\OptionDefinitionException;

src/Symfony/Component/Security/Core/SecurityContextInterface.php

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

1212
namespace Symfony\Component\Security\Core;
1313

14-
trigger_error('The '.__NAMESPACE__.'\SecurityContextInterface interface is deprecated since version 2.6 and will be removed in 3.0. Use both Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface and Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface interfaces instead.', E_USER_DEPRECATED);
15-
1614
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
1715
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
1816

src/Symfony/Component/Templating/DebuggerInterface.php

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

1212
namespace Symfony\Component\Templating;
1313

14-
trigger_error('The '.__NAMESPACE__.'\DebuggerInterface interface is deprecated since version 2.4 and will be removed in 3.0. Use Psr\Log\LoggerInterface instead.', E_USER_DEPRECATED);
15-
1614
/**
1715
* DebuggerInterface is the interface you need to implement
1816
* to debug template loader instances.

src/Symfony/Component/Validator/ClassBasedInterface.php

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

1212
namespace Symfony\Component\Validator;
1313

14-
trigger_error('The '.__NAMESPACE__.'\ClassBasedInterface interface is deprecated since version 2.7 and will be removed in 3.0. Use the Symfony\Component\Validator\Mapping\ClassMetadataInterface interface instead', E_USER_DEPRECATED);
15-
1614
/**
1715
* An object backed by a PHP class.
1816
*

src/Symfony/Component/Validator/ExecutionContextInterface.php

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

1212
namespace Symfony\Component\Validator;
1313

14-
trigger_error('The '.__NAMESPACE__.'\ExecutionContextInterface interface is deprecated since version 2.5 and will be removed in 3.0. Use the Symfony\Component\Validator\Context\ExecutionContextInterface interface instead.', E_USER_DEPRECATED);
15-
1614
/**
1715
* Stores the validator's state during validation.
1816
*

src/Symfony/Component/Validator/GlobalExecutionContextInterface.php

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

1212
namespace Symfony\Component\Validator;
1313

14-
trigger_error('The '.__NAMESPACE__.'\GlobalExecutionContextInterface interface is deprecated since version 2.5 and will be removed in version 3.0. Use the Symfony\Component\Validator\Context\ExecutionContextInterface interface instead', E_USER_DEPRECATED);
15-
1614
/**
1715
* Stores the node-independent state of a validation run.
1816
*

src/Symfony/Component/Validator/MetadataFactoryInterface.php

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

1212
namespace Symfony\Component\Validator;
1313

14-
trigger_error('The '.__NAMESPACE__.'\MetadataFactoryInterface interface is deprecated since version 2.5 and will be removed in Symfony 3.0. Use the Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface interface instead.', E_USER_DEPRECATED);
15-
1614
/**
1715
* Returns {@link MetadataInterface} instances for values.
1816
*

src/Symfony/Component/Validator/MetadataInterface.php

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

1212
namespace Symfony\Component\Validator;
1313

14-
trigger_error('The '.__NAMESPACE__.'\MetadataInterface interface is deprecated since version 2.5 and will be removed in 3.0. Use the Symfony\Component\Validator\Mapping\MetadataInterface interface instead.', E_USER_DEPRECATED);
15-
1614
/**
1715
* A container for validation metadata.
1816
*

src/Symfony/Component/Validator/PropertyMetadataContainerInterface.php

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

1212
namespace Symfony\Component\Validator;
1313

14-
trigger_error('The '.__NAMESPACE__.' interface is deprecated since version 2.5 and will be removed in 3.0. Use the Symfony\Component\Validator\Mapping\ClassMetadataInterface interface instead.', E_USER_DEPRECATED);
15-
1614
/**
1715
* A container for {@link PropertyMetadataInterface} instances.
1816
*

src/Symfony/Component/Validator/PropertyMetadataInterface.php

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

1212
namespace Symfony\Component\Validator;
1313

14-
trigger_error('The '.__NAMESPACE__.'\PropertyMetadataInterface interface is deprecated since version 2.5 and will be removed in version 3.0. Use the Symfony\Component\Validator\Mapping\PropertyMetadataInterface interface instead', E_USER_DEPRECATED);
15-
1614
/**
1715
* A container for validation metadata of a property.
1816
*

src/Symfony/Component/Validator/ValidationVisitorInterface.php

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

1212
namespace Symfony\Component\Validator;
1313

14-
trigger_error('The '.__NAMESPACE__.'\ValidationVisitorInterface interface is deprecated since version 2.5 and will be removed in version 3.0.', E_USER_DEPRECATED);
15-
1614
/**
1715
* Validates values against constraints defined in {@link MetadataInterface}
1816
* instances.

src/Symfony/Component/Validator/ValidatorInterface.php

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

1212
namespace Symfony\Component\Validator;
1313

14-
trigger_error('The '.__NAMESPACE__.'\ValidatorInterface interface is deprecated since version 2.5 and will be removed in version 3.0. Use the Symfony\Component\Validator\Validator\ValidatorInterface interface instead.', E_USER_DEPRECATED);
15-
1614
/**
1715
* Validates values and graphs of objects and arrays.
1816
*

0 commit comments

Comments
 (0)