Merge branch '2.7' into 2.8
* 2.7: [2.7][DX] Use constant message contextualisation for deprecations
This commit is contained in:
commit
be411de4d0
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Bridge\Doctrine\Form\ChoiceList;
|
namespace Symfony\Bridge\Doctrine\Form\ChoiceList;
|
||||||
|
|
||||||
@trigger_error('The '.__NAMESPACE__.'\EntityChoiceList class is deprecated since version 2.7 and will be removed in 3.0. Use Symfony\Bridge\Doctrine\Form\ChoiceList\DoctrineChoiceLoader instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__NAMESPACE__.'\EntityChoiceList class is deprecated since Symfony 2.7 and will be removed in 3.0. Use Symfony\Bridge\Doctrine\Form\ChoiceList\DoctrineChoiceLoader instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
|
use Doctrine\Common\Persistence\Mapping\ClassMetadata;
|
||||||
use Doctrine\Common\Persistence\ObjectManager;
|
use Doctrine\Common\Persistence\ObjectManager;
|
||||||
@ -312,7 +312,7 @@ class EntityChoiceList extends ObjectChoiceList
|
|||||||
*/
|
*/
|
||||||
public function getIndicesForChoices(array $entities)
|
public function getIndicesForChoices(array $entities)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
// Performance optimization
|
// Performance optimization
|
||||||
if (empty($entities)) {
|
if (empty($entities)) {
|
||||||
@ -355,7 +355,7 @@ class EntityChoiceList extends ObjectChoiceList
|
|||||||
*/
|
*/
|
||||||
public function getIndicesForValues(array $values)
|
public function getIndicesForValues(array $values)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
// Performance optimization
|
// Performance optimization
|
||||||
if (empty($values)) {
|
if (empty($values)) {
|
||||||
|
@ -57,14 +57,14 @@ class ORMQueryBuilderLoader implements EntityLoaderInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($queryBuilder instanceof \Closure) {
|
if ($queryBuilder instanceof \Closure) {
|
||||||
@trigger_error('Passing a QueryBuilder closure to '.__CLASS__.'::__construct() is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('Passing a QueryBuilder closure to '.__CLASS__.'::__construct() is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (!$manager instanceof ObjectManager) {
|
if (!$manager instanceof ObjectManager) {
|
||||||
throw new UnexpectedTypeException($manager, 'Doctrine\Common\Persistence\ObjectManager');
|
throw new UnexpectedTypeException($manager, 'Doctrine\Common\Persistence\ObjectManager');
|
||||||
}
|
}
|
||||||
|
|
||||||
@trigger_error('Passing an EntityManager to '.__CLASS__.'::__construct() is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('Passing an EntityManager to '.__CLASS__.'::__construct() is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
@trigger_error('Passing a class to '.__CLASS__.'::__construct() is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('Passing a class to '.__CLASS__.'::__construct() is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$queryBuilder = $queryBuilder($manager->getRepository($class));
|
$queryBuilder = $queryBuilder($manager->getRepository($class));
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ abstract class DoctrineType extends AbstractType
|
|||||||
// deprecation note
|
// deprecation note
|
||||||
$propertyNormalizer = function (Options $options, $propertyName) {
|
$propertyNormalizer = function (Options $options, $propertyName) {
|
||||||
if ($propertyName) {
|
if ($propertyName) {
|
||||||
@trigger_error('The "property" option is deprecated since version 2.7 and will be removed in 3.0. Use "choice_label" instead.', E_USER_DEPRECATED);
|
@trigger_error('The "property" option is deprecated since Symfony 2.7 and will be removed in 3.0. Use "choice_label" instead.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $propertyName;
|
return $propertyName;
|
||||||
@ -269,7 +269,7 @@ abstract class DoctrineType extends AbstractType
|
|||||||
// deprecation note
|
// deprecation note
|
||||||
$loaderNormalizer = function (Options $options, $loader) {
|
$loaderNormalizer = function (Options $options, $loader) {
|
||||||
if ($loader) {
|
if ($loader) {
|
||||||
@trigger_error('The "loader" option is deprecated since version 2.7 and will be removed in 3.0. Override getLoader() instead.', E_USER_DEPRECATED);
|
@trigger_error('The "loader" option is deprecated since Symfony 2.7 and will be removed in 3.0. Override getLoader() instead.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $loader;
|
return $loader;
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Bridge\Doctrine\Tests;
|
namespace Symfony\Bridge\Doctrine\Tests;
|
||||||
|
|
||||||
@trigger_error('The '.__NAMESPACE__.'\DoctrineOrmTestCase class is deprecated since version 2.4 and will be removed in 3.0. Use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper class instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__NAMESPACE__.'\DoctrineOrmTestCase class is deprecated since Symfony 2.4 and will be removed in 3.0. Use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper class instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
use Doctrine\ORM\EntityManager;
|
use Doctrine\ORM\EntityManager;
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
@ -27,7 +27,7 @@ class Logger extends BaseLogger implements LoggerInterface, DebugLoggerInterface
|
|||||||
*/
|
*/
|
||||||
public function emerg($message, array $context = array())
|
public function emerg($message, array $context = array())
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method inherited from the Symfony\Component\HttpKernel\Log\LoggerInterface interface is deprecated since version 2.2 and will be removed in 3.0. Use the emergency() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method inherited from the Symfony\Component\HttpKernel\Log\LoggerInterface interface is deprecated since Symfony 2.2 and will be removed in 3.0. Use the emergency() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return parent::addRecord(BaseLogger::EMERGENCY, $message, $context);
|
return parent::addRecord(BaseLogger::EMERGENCY, $message, $context);
|
||||||
}
|
}
|
||||||
@ -37,7 +37,7 @@ class Logger extends BaseLogger implements LoggerInterface, DebugLoggerInterface
|
|||||||
*/
|
*/
|
||||||
public function crit($message, array $context = array())
|
public function crit($message, array $context = array())
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method inherited from the Symfony\Component\HttpKernel\Log\LoggerInterface interface is deprecated since version 2.2 and will be removed in 3.0. Use the method critical() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method inherited from the Symfony\Component\HttpKernel\Log\LoggerInterface interface is deprecated since Symfony 2.2 and will be removed in 3.0. Use the method critical() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return parent::addRecord(BaseLogger::CRITICAL, $message, $context);
|
return parent::addRecord(BaseLogger::CRITICAL, $message, $context);
|
||||||
}
|
}
|
||||||
@ -47,7 +47,7 @@ class Logger extends BaseLogger implements LoggerInterface, DebugLoggerInterface
|
|||||||
*/
|
*/
|
||||||
public function err($message, array $context = array())
|
public function err($message, array $context = array())
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method inherited from the Symfony\Component\HttpKernel\Log\LoggerInterface interface is deprecated since version 2.2 and will be removed in 3.0. Use the error() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method inherited from the Symfony\Component\HttpKernel\Log\LoggerInterface interface is deprecated since Symfony 2.2 and will be removed in 3.0. Use the error() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return parent::addRecord(BaseLogger::ERROR, $message, $context);
|
return parent::addRecord(BaseLogger::ERROR, $message, $context);
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ class Logger extends BaseLogger implements LoggerInterface, DebugLoggerInterface
|
|||||||
*/
|
*/
|
||||||
public function warn($message, array $context = array())
|
public function warn($message, array $context = array())
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method inherited from the Symfony\Component\HttpKernel\Log\LoggerInterface interface is deprecated since version 2.2 and will be removed in 3.0. Use the warning() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method inherited from the Symfony\Component\HttpKernel\Log\LoggerInterface interface is deprecated since Symfony 2.2 and will be removed in 3.0. Use the warning() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return parent::addRecord(BaseLogger::WARNING, $message, $context);
|
return parent::addRecord(BaseLogger::WARNING, $message, $context);
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Bridge\Swiftmailer\DataCollector;
|
namespace Symfony\Bridge\Swiftmailer\DataCollector;
|
||||||
|
|
||||||
@trigger_error('The '.__NAMESPACE__.'\MessageDataCollector class is deprecated since version 2.4 and will be removed in 3.0. Use the Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector class from SwiftmailerBundle instead. Require symfony/swiftmailer-bundle package to download SwiftmailerBundle with Composer.', E_USER_DEPRECATED);
|
@trigger_error('The '.__NAMESPACE__.'\MessageDataCollector class is deprecated since Symfony 2.4 and will be removed in 3.0. Use the Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector class from SwiftmailerBundle instead. Require symfony/swiftmailer-bundle package to download SwiftmailerBundle with Composer.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
|
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
@ -68,7 +68,7 @@ class AppVariable
|
|||||||
*/
|
*/
|
||||||
public function getSecurity()
|
public function getSecurity()
|
||||||
{
|
{
|
||||||
@trigger_error('The "app.security" variable is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The "app.security" variable is deprecated since Symfony 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (null === $this->container) {
|
if (null === $this->container) {
|
||||||
throw new \RuntimeException('The "app.security" variable is not available.');
|
throw new \RuntimeException('The "app.security" variable is not available.');
|
||||||
|
@ -315,7 +315,7 @@ class Controller extends ContainerAware
|
|||||||
*/
|
*/
|
||||||
public function getRequest()
|
public function getRequest()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0. The only reliable way to get the "Request" object is to inject it in the action method.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0. The only reliable way to get the "Request" object is to inject it in the action method.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->container->get('request_stack')->getCurrentRequest();
|
return $this->container->get('request_stack')->getCurrentRequest();
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler;
|
namespace Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler;
|
||||||
|
|
||||||
@trigger_error('The '.__NAMESPACE__.'\FragmentRendererPass class is deprecated since version 2.7 and will be removed in 3.0. Use Symfony\Component\HttpKernel\DependencyInjection\FragmentRendererPass instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__NAMESPACE__.'\FragmentRendererPass class is deprecated since Symfony 2.7 and will be removed in 3.0. Use Symfony\Component\HttpKernel\DependencyInjection\FragmentRendererPass instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\Reference;
|
use Symfony\Component\DependencyInjection\Reference;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|||||||
use Symfony\Component\DependencyInjection\Definition;
|
use Symfony\Component\DependencyInjection\Definition;
|
||||||
use Symfony\Component\DependencyInjection\Reference;
|
use Symfony\Component\DependencyInjection\Reference;
|
||||||
|
|
||||||
@trigger_error('The '.__NAMESPACE__.'\TemplatingAssetHelperPass class is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__NAMESPACE__.'\TemplatingAssetHelperPass class is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated since 2.7, will be removed in 3.0
|
* @deprecated since 2.7, will be removed in 3.0
|
||||||
|
@ -48,7 +48,7 @@ class Configuration implements ConfigurationInterface
|
|||||||
->beforeNormalization()
|
->beforeNormalization()
|
||||||
->ifTrue(function ($v) { return isset($v['csrf_protection']['field_name']); })
|
->ifTrue(function ($v) { return isset($v['csrf_protection']['field_name']); })
|
||||||
->then(function ($v) {
|
->then(function ($v) {
|
||||||
@trigger_error('The framework.csrf_protection.field_name configuration key is deprecated since version 2.4 and will be removed in 3.0. Use the framework.form.csrf_protection.field_name configuration key instead', E_USER_DEPRECATED);
|
@trigger_error('The framework.csrf_protection.field_name configuration key is deprecated since Symfony 2.4 and will be removed in 3.0. Use the framework.form.csrf_protection.field_name configuration key instead', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $v;
|
return $v;
|
||||||
})
|
})
|
||||||
@ -82,7 +82,7 @@ class Configuration implements ConfigurationInterface
|
|||||||
|| count($v['templating']['assets_base_urls']['ssl'])
|
|| count($v['templating']['assets_base_urls']['ssl'])
|
||||||
|| count($v['templating']['packages'])
|
|| count($v['templating']['packages'])
|
||||||
) {
|
) {
|
||||||
@trigger_error('The assets settings under framework.templating are deprecated since version 2.7 and will be removed in 3.0. Use the framework.assets configuration key instead', E_USER_DEPRECATED);
|
@trigger_error('The assets settings under framework.templating are deprecated since Symfony 2.7 and will be removed in 3.0. Use the framework.assets configuration key instead', E_USER_DEPRECATED);
|
||||||
|
|
||||||
// convert the old configuration to the new one
|
// convert the old configuration to the new one
|
||||||
if (isset($v['assets'])) {
|
if (isset($v['assets'])) {
|
||||||
@ -115,7 +115,7 @@ class Configuration implements ConfigurationInterface
|
|||||||
->beforeNormalization()
|
->beforeNormalization()
|
||||||
->ifTrue(function ($v) { return isset($v['validation']['api']); })
|
->ifTrue(function ($v) { return isset($v['validation']['api']); })
|
||||||
->then(function ($v) {
|
->then(function ($v) {
|
||||||
@trigger_error('The validation.api configuration key is deprecated since version 2.7 and will be removed in 3.0', E_USER_DEPRECATED);
|
@trigger_error('The validation.api configuration key is deprecated since Symfony 2.7 and will be removed in 3.0', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $v;
|
return $v;
|
||||||
})
|
})
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Bundle\FrameworkBundle\Fragment;
|
namespace Symfony\Bundle\FrameworkBundle\Fragment;
|
||||||
|
|
||||||
@trigger_error('The '.__NAMESPACE__.'\ContainerAwareHIncludeFragmentRenderer class is deprecated since version 2.7 and will be removed in 3.0. Use Symfony\Bundle\FrameworkBundle\Fragment\HIncludeFragmentRenderer instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__NAMESPACE__.'\ContainerAwareHIncludeFragmentRenderer class is deprecated since Symfony 2.7 and will be removed in 3.0. Use Symfony\Bundle\FrameworkBundle\Fragment\HIncludeFragmentRenderer instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
@ -82,7 +82,7 @@ abstract class HttpCache extends BaseHttpCache
|
|||||||
*/
|
*/
|
||||||
protected function createEsi()
|
protected function createEsi()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use createSurrogate() instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use createSurrogate() instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->createSurrogate();
|
return $this->createSurrogate();
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ class GlobalVariables
|
|||||||
*/
|
*/
|
||||||
public function getSecurity()
|
public function getSecurity()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if ($this->container->has('security.context')) {
|
if ($this->container->has('security.context')) {
|
||||||
return $this->container->get('security.context');
|
return $this->container->get('security.context');
|
||||||
|
@ -38,7 +38,7 @@ class ActionsExtension extends AbstractExtension
|
|||||||
if ($handler instanceof FragmentHandler) {
|
if ($handler instanceof FragmentHandler) {
|
||||||
$this->handler = $handler;
|
$this->handler = $handler;
|
||||||
} elseif ($handler instanceof ContainerInterface) {
|
} elseif ($handler instanceof ContainerInterface) {
|
||||||
@trigger_error('The ability to pass a ContainerInterface instance as a first argument to '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0. Pass a FragmentHandler instance instead.', E_USER_DEPRECATED);
|
@trigger_error('The ability to pass a ContainerInterface instance as a first argument to '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0. Pass a FragmentHandler instance instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->handler = $handler->get('fragment.handler');
|
$this->handler = $handler->get('fragment.handler');
|
||||||
} else {
|
} else {
|
||||||
|
@ -43,7 +43,7 @@ class TwigEngine extends BaseEngine implements EngineInterface
|
|||||||
*/
|
*/
|
||||||
public function setDefaultEscapingStrategy($strategy)
|
public function setDefaultEscapingStrategy($strategy)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0. Inject the escaping strategy in the Twig\Environment object instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0. Inject the escaping strategy in the Twig\Environment object instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->environment->getExtension('Twig\Extension\EscaperExtension')->setDefaultStrategy($strategy);
|
$this->environment->getExtension('Twig\Extension\EscaperExtension')->setDefaultStrategy($strategy);
|
||||||
}
|
}
|
||||||
@ -54,7 +54,7 @@ class TwigEngine extends BaseEngine implements EngineInterface
|
|||||||
*/
|
*/
|
||||||
public function guessDefaultEscapingStrategy($name)
|
public function guessDefaultEscapingStrategy($name)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0. Use the Twig\FileExtensionEscapingStrategy::guess method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0. Use the Twig\FileExtensionEscapingStrategy::guess method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return FileExtensionEscapingStrategy::guess($name);
|
return FileExtensionEscapingStrategy::guess($name);
|
||||||
}
|
}
|
||||||
|
@ -606,7 +606,7 @@ class Application
|
|||||||
*/
|
*/
|
||||||
public function asText($namespace = null, $raw = false)
|
public function asText($namespace = null, $raw = false)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$descriptor = new TextDescriptor();
|
$descriptor = new TextDescriptor();
|
||||||
$output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, !$raw);
|
$output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, !$raw);
|
||||||
@ -627,7 +627,7 @@ class Application
|
|||||||
*/
|
*/
|
||||||
public function asXml($namespace = null, $asDom = false)
|
public function asXml($namespace = null, $asDom = false)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$descriptor = new XmlDescriptor();
|
$descriptor = new XmlDescriptor();
|
||||||
|
|
||||||
|
@ -622,7 +622,7 @@ class Command
|
|||||||
*/
|
*/
|
||||||
public function asText()
|
public function asText()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$descriptor = new TextDescriptor();
|
$descriptor = new TextDescriptor();
|
||||||
$output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
|
$output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
|
||||||
@ -642,7 +642,7 @@ class Command
|
|||||||
*/
|
*/
|
||||||
public function asXml($asDom = false)
|
public function asXml($asDom = false)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$descriptor = new XmlDescriptor();
|
$descriptor = new XmlDescriptor();
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ class ProgressBar
|
|||||||
*/
|
*/
|
||||||
public function getStep()
|
public function getStep()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the getProgress() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the getProgress() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->getProgress();
|
return $this->getProgress();
|
||||||
}
|
}
|
||||||
@ -366,7 +366,7 @@ class ProgressBar
|
|||||||
*/
|
*/
|
||||||
public function setCurrent($step)
|
public function setCurrent($step)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the setProgress() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the setProgress() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->setProgress($step);
|
$this->setProgress($step);
|
||||||
}
|
}
|
||||||
|
@ -412,7 +412,7 @@ class InputDefinition
|
|||||||
*/
|
*/
|
||||||
public function asText()
|
public function asText()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$descriptor = new TextDescriptor();
|
$descriptor = new TextDescriptor();
|
||||||
$output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
|
$output = new BufferedOutput(BufferedOutput::VERBOSITY_NORMAL, true);
|
||||||
@ -432,7 +432,7 @@ class InputDefinition
|
|||||||
*/
|
*/
|
||||||
public function asXml($asDom = false)
|
public function asXml($asDom = false)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$descriptor = new XmlDescriptor();
|
$descriptor = new XmlDescriptor();
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ class DebugClassLoader
|
|||||||
*/
|
*/
|
||||||
public function findFile($class)
|
public function findFile($class)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if ($this->wasFinder) {
|
if ($this->wasFinder) {
|
||||||
return $this->classLoader[0]->findFile($class);
|
return $this->classLoader[0]->findFile($class);
|
||||||
|
@ -761,7 +761,7 @@ class ErrorHandler
|
|||||||
*/
|
*/
|
||||||
public function setLevel($level)
|
public function setLevel($level)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the throwAt() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the throwAt() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$level = null === $level ? error_reporting() : $level;
|
$level = null === $level ? error_reporting() : $level;
|
||||||
$this->throwAt($level, true);
|
$this->throwAt($level, true);
|
||||||
@ -776,7 +776,7 @@ class ErrorHandler
|
|||||||
*/
|
*/
|
||||||
public function setDisplayErrors($displayErrors)
|
public function setDisplayErrors($displayErrors)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the throwAt() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the throwAt() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if ($displayErrors) {
|
if ($displayErrors) {
|
||||||
$this->throwAt($this->displayErrors, true);
|
$this->throwAt($this->displayErrors, true);
|
||||||
@ -797,7 +797,7 @@ class ErrorHandler
|
|||||||
*/
|
*/
|
||||||
public static function setLogger(LoggerInterface $logger, $channel = 'deprecation')
|
public static function setLogger(LoggerInterface $logger, $channel = 'deprecation')
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' static method is deprecated since version 2.6 and will be removed in 3.0. Use the setLoggers() or setDefaultLogger() methods instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' static method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the setLoggers() or setDefaultLogger() methods instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$handler = set_error_handler('var_dump');
|
$handler = set_error_handler('var_dump');
|
||||||
$handler = is_array($handler) ? $handler[0] : null;
|
$handler = is_array($handler) ? $handler[0] : null;
|
||||||
@ -822,7 +822,7 @@ class ErrorHandler
|
|||||||
*/
|
*/
|
||||||
public function handle($level, $message, $file = 'unknown', $line = 0, $context = array())
|
public function handle($level, $message, $file = 'unknown', $line = 0, $context = array())
|
||||||
{
|
{
|
||||||
$this->handleError(E_USER_DEPRECATED, 'The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the handleError() method instead.', __FILE__, __LINE__, array());
|
$this->handleError(E_USER_DEPRECATED, 'The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the handleError() method instead.', __FILE__, __LINE__, array());
|
||||||
|
|
||||||
return $this->handleError($level, $message, $file, $line, (array) $context);
|
return $this->handleError($level, $message, $file, $line, (array) $context);
|
||||||
}
|
}
|
||||||
@ -834,7 +834,7 @@ class ErrorHandler
|
|||||||
*/
|
*/
|
||||||
public function handleFatal()
|
public function handleFatal()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the handleFatalError() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the handleFatalError() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
static::handleFatalError();
|
static::handleFatalError();
|
||||||
}
|
}
|
||||||
|
@ -449,7 +449,7 @@ EOF;
|
|||||||
*/
|
*/
|
||||||
protected static function utf8Htmlize($str)
|
protected static function utf8Htmlize($str)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return htmlspecialchars($str, ENT_QUOTES | (\PHP_VERSION_ID >= 50400 ? ENT_SUBSTITUTE : 0), 'UTF-8');
|
return htmlspecialchars($str, ENT_QUOTES | (\PHP_VERSION_ID >= 50400 ? ENT_SUBSTITUTE : 0), 'UTF-8');
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ class Definition
|
|||||||
public function getFactoryClass($triggerDeprecationError = true)
|
public function getFactoryClass($triggerDeprecationError = true)
|
||||||
{
|
{
|
||||||
if ($triggerDeprecationError) {
|
if ($triggerDeprecationError) {
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->factoryClass;
|
return $this->factoryClass;
|
||||||
@ -185,7 +185,7 @@ class Definition
|
|||||||
public function getFactoryMethod($triggerDeprecationError = true)
|
public function getFactoryMethod($triggerDeprecationError = true)
|
||||||
{
|
{
|
||||||
if ($triggerDeprecationError) {
|
if ($triggerDeprecationError) {
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->factoryMethod;
|
return $this->factoryMethod;
|
||||||
@ -221,7 +221,7 @@ class Definition
|
|||||||
public function getFactoryService($triggerDeprecationError = true)
|
public function getFactoryService($triggerDeprecationError = true)
|
||||||
{
|
{
|
||||||
if ($triggerDeprecationError) {
|
if ($triggerDeprecationError) {
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->factoryService;
|
return $this->factoryService;
|
||||||
@ -660,7 +660,7 @@ class Definition
|
|||||||
public function setSynchronized($boolean, $triggerDeprecationError = true)
|
public function setSynchronized($boolean, $triggerDeprecationError = true)
|
||||||
{
|
{
|
||||||
if ($triggerDeprecationError) {
|
if ($triggerDeprecationError) {
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->synchronized = (bool) $boolean;
|
$this->synchronized = (bool) $boolean;
|
||||||
@ -678,7 +678,7 @@ class Definition
|
|||||||
public function isSynchronized($triggerDeprecationError = true)
|
public function isSynchronized($triggerDeprecationError = true)
|
||||||
{
|
{
|
||||||
if ($triggerDeprecationError) {
|
if ($triggerDeprecationError) {
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->synchronized;
|
return $this->synchronized;
|
||||||
|
@ -1432,7 +1432,7 @@ EOF;
|
|||||||
*/
|
*/
|
||||||
public function addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider)
|
public function addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6.2 and will be removed in 3.0. Use the Symfony\Component\DependencyInjection\ContainerBuilder::addExpressionLanguageProvider method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6.2 and will be removed in 3.0. Use the Symfony\Component\DependencyInjection\ContainerBuilder::addExpressionLanguageProvider method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->expressionLanguageProviders[] = $provider;
|
$this->expressionLanguageProviders[] = $provider;
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ class Event
|
|||||||
*/
|
*/
|
||||||
public function getDispatcher()
|
public function getDispatcher()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0. The event dispatcher instance can be received in the listener call instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0. The event dispatcher instance can be received in the listener call instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->dispatcher;
|
return $this->dispatcher;
|
||||||
}
|
}
|
||||||
@ -101,7 +101,7 @@ class Event
|
|||||||
*/
|
*/
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0. The event name can be received in the listener call instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0. The event name can be received in the listener call instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->name;
|
return $this->name;
|
||||||
}
|
}
|
||||||
|
@ -603,7 +603,7 @@ class Filesystem
|
|||||||
|
|
||||||
if (null !== $mode) {
|
if (null !== $mode) {
|
||||||
if (func_num_args() > 2) {
|
if (func_num_args() > 2) {
|
||||||
@trigger_error('Support for modifying file permissions is deprecated since version 2.3.12 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('Support for modifying file permissions is deprecated since Symfony 2.3.12 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->chmod($tmpFile, $mode);
|
$this->chmod($tmpFile, $mode);
|
||||||
|
@ -588,7 +588,7 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
|
|||||||
*/
|
*/
|
||||||
public function getVirtual()
|
public function getVirtual()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the Symfony\Component\Form\FormConfigBuilder::getInheritData method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the Symfony\Component\Form\FormConfigBuilder::getInheritData method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -200,7 +200,7 @@ class ChoiceList implements ChoiceListInterface
|
|||||||
*/
|
*/
|
||||||
public function getIndicesForChoices(array $choices)
|
public function getIndicesForChoices(array $choices)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$choices = $this->fixChoices($choices);
|
$choices = $this->fixChoices($choices);
|
||||||
$indices = array();
|
$indices = array();
|
||||||
@ -228,7 +228,7 @@ class ChoiceList implements ChoiceListInterface
|
|||||||
*/
|
*/
|
||||||
public function getIndicesForValues(array $values)
|
public function getIndicesForValues(array $values)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$values = $this->fixValues($values);
|
$values = $this->fixValues($values);
|
||||||
$indices = array();
|
$indices = array();
|
||||||
|
@ -115,7 +115,7 @@ abstract class LazyChoiceList implements ChoiceListInterface
|
|||||||
*/
|
*/
|
||||||
public function getIndicesForChoices(array $choices)
|
public function getIndicesForChoices(array $choices)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (!$this->choiceList) {
|
if (!$this->choiceList) {
|
||||||
$this->load();
|
$this->load();
|
||||||
@ -131,7 +131,7 @@ abstract class LazyChoiceList implements ChoiceListInterface
|
|||||||
*/
|
*/
|
||||||
public function getIndicesForValues(array $values)
|
public function getIndicesForValues(array $values)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (!$this->choiceList) {
|
if (!$this->choiceList) {
|
||||||
$this->load();
|
$this->load();
|
||||||
|
@ -196,7 +196,7 @@ class ObjectChoiceList extends ChoiceList
|
|||||||
*/
|
*/
|
||||||
public function getIndicesForChoices(array $choices)
|
public function getIndicesForChoices(array $choices)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (!$this->valuePath) {
|
if (!$this->valuePath) {
|
||||||
return parent::getIndicesForChoices($choices);
|
return parent::getIndicesForChoices($choices);
|
||||||
|
@ -89,7 +89,7 @@ class FixCheckboxInputListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
public function preBind(FormEvent $event)
|
public function preBind(FormEvent $event)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->preSubmit($event);
|
$this->preSubmit($event);
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ class FixRadioInputListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
public function preBind(FormEvent $event)
|
public function preBind(FormEvent $event)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->preSubmit($event);
|
$this->preSubmit($event);
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ class FixUrlProtocolListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
public function onBind(FormEvent $event)
|
public function onBind(FormEvent $event)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->onSubmit($event);
|
$this->onSubmit($event);
|
||||||
}
|
}
|
||||||
|
@ -119,7 +119,7 @@ class MergeCollectionListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
public function onBind(FormEvent $event)
|
public function onBind(FormEvent $event)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->onSubmit($event);
|
$this->onSubmit($event);
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ class ResizeFormListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
public function preBind(FormEvent $event)
|
public function preBind(FormEvent $event)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->preSubmit($event);
|
$this->preSubmit($event);
|
||||||
}
|
}
|
||||||
@ -185,7 +185,7 @@ class ResizeFormListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
public function onBind(FormEvent $event)
|
public function onBind(FormEvent $event)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the onSubmit() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->onSubmit($event);
|
$this->onSubmit($event);
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ class TrimListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
public function preBind(FormEvent $event)
|
public function preBind(FormEvent $event)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->preSubmit($event);
|
$this->preSubmit($event);
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ class CsrfTokenManagerAdapter implements CsrfProviderInterface
|
|||||||
public function getTokenManager($triggerDeprecationError = true)
|
public function getTokenManager($triggerDeprecationError = true)
|
||||||
{
|
{
|
||||||
if ($triggerDeprecationError) {
|
if ($triggerDeprecationError) {
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in version 3.0. Use the Symfony\Component\Security\Csrf\CsrfTokenManager class instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in version 3.0. Use the Symfony\Component\Security\Csrf\CsrfTokenManager class instead.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->tokenManager;
|
return $this->tokenManager;
|
||||||
@ -44,7 +44,7 @@ class CsrfTokenManagerAdapter implements CsrfProviderInterface
|
|||||||
*/
|
*/
|
||||||
public function generateCsrfToken($intention)
|
public function generateCsrfToken($intention)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in version 3.0. Use the Symfony\Component\Security\Csrf\CsrfTokenManager class instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in version 3.0. Use the Symfony\Component\Security\Csrf\CsrfTokenManager class instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->tokenManager->getToken($intention)->getValue();
|
return $this->tokenManager->getToken($intention)->getValue();
|
||||||
}
|
}
|
||||||
@ -54,7 +54,7 @@ class CsrfTokenManagerAdapter implements CsrfProviderInterface
|
|||||||
*/
|
*/
|
||||||
public function isCsrfTokenValid($intention, $token)
|
public function isCsrfTokenValid($intention, $token)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in version 3.0. Use the Symfony\Component\Security\Csrf\CsrfTokenManager class instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in version 3.0. Use the Symfony\Component\Security\Csrf\CsrfTokenManager class instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->tokenManager->isTokenValid(new CsrfToken($intention, $token));
|
return $this->tokenManager->isTokenValid(new CsrfToken($intention, $token));
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ class CsrfValidationListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
public function preBind(FormEvent $event)
|
public function preBind(FormEvent $event)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the preSubmit() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->preSubmit($event);
|
$this->preSubmit($event);
|
||||||
}
|
}
|
||||||
|
@ -684,7 +684,7 @@ class Form implements \IteratorAggregate, FormInterface
|
|||||||
// This method is deprecated for Request too, but the error is
|
// This method is deprecated for Request too, but the error is
|
||||||
// triggered in Form::submit() method.
|
// triggered in Form::submit() method.
|
||||||
if (!$submittedData instanceof Request) {
|
if (!$submittedData instanceof Request) {
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the '.__CLASS__.'::submit method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the '.__CLASS__.'::submit method instead.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->submit($submittedData);
|
return $this->submit($submittedData);
|
||||||
@ -724,7 +724,7 @@ class Form implements \IteratorAggregate, FormInterface
|
|||||||
*/
|
*/
|
||||||
public function isBound()
|
public function isBound()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the '.__CLASS__.'::isSubmitted method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the '.__CLASS__.'::isSubmitted method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->submitted;
|
return $this->submitted;
|
||||||
}
|
}
|
||||||
@ -844,7 +844,7 @@ class Form implements \IteratorAggregate, FormInterface
|
|||||||
*/
|
*/
|
||||||
public function getErrorsAsString($level = 0)
|
public function getErrorsAsString($level = 0)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use (string) Form::getErrors(true, false) instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Use (string) Form::getErrors(true, false) instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return self::indent((string) $this->getErrors(true, false), $level);
|
return self::indent((string) $this->getErrors(true, false), $level);
|
||||||
}
|
}
|
||||||
|
@ -356,7 +356,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface
|
|||||||
*/
|
*/
|
||||||
public function getVirtual()
|
public function getVirtual()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the FormConfigBuilder::getInheritData() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the FormConfigBuilder::getInheritData() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->getInheritData();
|
return $this->getInheritData();
|
||||||
}
|
}
|
||||||
@ -720,7 +720,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface
|
|||||||
*/
|
*/
|
||||||
public function setVirtual($inheritData)
|
public function setVirtual($inheritData)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the FormConfigBuilder::setInheritData() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the FormConfigBuilder::setInheritData() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->setInheritData($inheritData);
|
$this->setInheritData($inheritData);
|
||||||
}
|
}
|
||||||
|
@ -260,7 +260,7 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
|||||||
$isNewOverwritten = 'Symfony\Component\Form\AbstractType' !== $reflector->getDeclaringClass()->getName();
|
$isNewOverwritten = 'Symfony\Component\Form\AbstractType' !== $reflector->getDeclaringClass()->getName();
|
||||||
|
|
||||||
if ($isOldOverwritten && !$isNewOverwritten) {
|
if ($isOldOverwritten && !$isNewOverwritten) {
|
||||||
@trigger_error(get_class($this->innerType).': The FormTypeInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeInterface with Symfony 3.0.', E_USER_DEPRECATED);
|
@trigger_error(get_class($this->innerType).': The FormTypeInterface::setDefaultOptions() method is deprecated since Symfony 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeInterface with Symfony 3.0.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@trigger_error(get_class($this->innerType).': The FormTypeInterface::configureOptions() method will be added in Symfony 3.0. You should extend AbstractType or implement it in your classes.', E_USER_DEPRECATED);
|
@trigger_error(get_class($this->innerType).': The FormTypeInterface::configureOptions() method will be added in Symfony 3.0. You should extend AbstractType or implement it in your classes.', E_USER_DEPRECATED);
|
||||||
@ -277,7 +277,7 @@ class ResolvedFormType implements ResolvedFormTypeInterface
|
|||||||
$isNewOverwritten = 'Symfony\Component\Form\AbstractTypeExtension' !== $reflector->getDeclaringClass()->getName();
|
$isNewOverwritten = 'Symfony\Component\Form\AbstractTypeExtension' !== $reflector->getDeclaringClass()->getName();
|
||||||
|
|
||||||
if ($isOldOverwritten && !$isNewOverwritten) {
|
if ($isOldOverwritten && !$isNewOverwritten) {
|
||||||
@trigger_error(get_class($extension).': The FormTypeExtensionInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeExtensionInterface with Symfony 3.0.', E_USER_DEPRECATED);
|
@trigger_error(get_class($extension).': The FormTypeExtensionInterface::setDefaultOptions() method is deprecated since Symfony 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeExtensionInterface with Symfony 3.0.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@trigger_error(get_class($this->innerType).': The FormTypeExtensionInterface::configureOptions() method will be added in Symfony 3.0. You should extend AbstractTypeExtension or implement it in your classes.', E_USER_DEPRECATED);
|
@trigger_error(get_class($this->innerType).': The FormTypeExtensionInterface::configureOptions() method will be added in Symfony 3.0. You should extend AbstractTypeExtension or implement it in your classes.', E_USER_DEPRECATED);
|
||||||
|
@ -161,7 +161,7 @@ class FlashBag implements FlashBagInterface, \IteratorAggregate
|
|||||||
*/
|
*/
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return new \ArrayIterator($this->all());
|
return new \ArrayIterator($this->all());
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ class TraceableEventDispatcher extends BaseTraceableEventDispatcher
|
|||||||
*/
|
*/
|
||||||
public function setProfiler(Profiler $profiler = null)
|
public function setProfiler(Profiler $profiler = null)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -97,7 +97,7 @@ class FragmentListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
protected function getLocalIpAddresses()
|
protected function getLocalIpAddresses()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3.19 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3.19 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return array('127.0.0.1', 'fe80::1', '::1');
|
return array('127.0.0.1', 'fe80::1', '::1');
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ class LocaleListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
public function setRequest(Request $request = null)
|
public function setRequest(Request $request = null)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (null === $request) {
|
if (null === $request) {
|
||||||
return;
|
return;
|
||||||
|
@ -105,7 +105,7 @@ class RouterListener implements EventSubscriberInterface
|
|||||||
*/
|
*/
|
||||||
public function setRequest(Request $request = null)
|
public function setRequest(Request $request = null)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be made private in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be made private in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->setCurrentRequest($request);
|
$this->setCurrentRequest($request);
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ class FragmentHandler
|
|||||||
*/
|
*/
|
||||||
public function setRequest(Request $request = null)
|
public function setRequest(Request $request = null)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->request = $request;
|
$this->request = $request;
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,7 @@ class Esi implements SurrogateInterface
|
|||||||
*/
|
*/
|
||||||
public function hasSurrogateEsiCapability(Request $request)
|
public function hasSurrogateEsiCapability(Request $request)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the hasSurrogateCapability() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the hasSurrogateCapability() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->hasSurrogateCapability($request);
|
return $this->hasSurrogateCapability($request);
|
||||||
}
|
}
|
||||||
@ -108,7 +108,7 @@ class Esi implements SurrogateInterface
|
|||||||
*/
|
*/
|
||||||
public function addSurrogateEsiCapability(Request $request)
|
public function addSurrogateEsiCapability(Request $request)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the addSurrogateCapability() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the addSurrogateCapability() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->addSurrogateCapability($request);
|
$this->addSurrogateCapability($request);
|
||||||
}
|
}
|
||||||
@ -150,7 +150,7 @@ class Esi implements SurrogateInterface
|
|||||||
*/
|
*/
|
||||||
public function needsEsiParsing(Response $response)
|
public function needsEsiParsing(Response $response)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the needsParsing() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the needsParsing() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->needsParsing($response);
|
return $this->needsParsing($response);
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
|
|||||||
*/
|
*/
|
||||||
public function getEsi()
|
public function getEsi()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the getSurrogate() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the getSurrogate() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->getSurrogate();
|
return $this->getSurrogate();
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
|||||||
$defClass = $defClass->getDeclaringClass()->name;
|
$defClass = $defClass->getDeclaringClass()->name;
|
||||||
|
|
||||||
if (__CLASS__ !== $defClass) {
|
if (__CLASS__ !== $defClass) {
|
||||||
@trigger_error(sprintf('Calling the %s::init() method is deprecated since version 2.3 and will be removed in 3.0. Move your logic to the constructor method instead.', $defClass), E_USER_DEPRECATED);
|
@trigger_error(sprintf('Calling the %s::init() method is deprecated since Symfony 2.3 and will be removed in 3.0. Move your logic to the constructor method instead.', $defClass), E_USER_DEPRECATED);
|
||||||
$this->init();
|
$this->init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -98,7 +98,7 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
|||||||
*/
|
*/
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Move your logic to the constructor method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Move your logic to the constructor method instead.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __clone()
|
public function __clone()
|
||||||
@ -208,7 +208,7 @@ abstract class Kernel implements KernelInterface, TerminableInterface
|
|||||||
*/
|
*/
|
||||||
public function isClassInActiveBundle($class)
|
public function isClassInActiveBundle($class)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in version 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in version 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
foreach ($this->getBundles() as $bundle) {
|
foreach ($this->getBundles() as $bundle) {
|
||||||
if (0 === strpos($class, $bundle->getNamespace())) {
|
if (0 === strpos($class, $bundle->getNamespace())) {
|
||||||
|
@ -24,21 +24,21 @@ class NullLogger extends PsrNullLogger implements LoggerInterface
|
|||||||
{
|
{
|
||||||
public function emerg($message, array $context = array())
|
public function emerg($message, array $context = array())
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. You should use the new emergency() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. You should use the new emergency() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function crit($message, array $context = array())
|
public function crit($message, array $context = array())
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. You should use the new critical() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. You should use the new critical() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function err($message, array $context = array())
|
public function err($message, array $context = array())
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. You should use the new error() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. You should use the new error() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function warn($message, array $context = array())
|
public function warn($message, array $context = array())
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. You should use the new warning() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. You should use the new warning() method instead, which is PSR-3 compatible.', E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -420,7 +420,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
|||||||
*/
|
*/
|
||||||
public function setNormalizers(array $normalizers)
|
public function setNormalizers(array $normalizers)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use setNormalizer() instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use setNormalizer() instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
foreach ($normalizers as $option => $normalizer) {
|
foreach ($normalizers as $option => $normalizer) {
|
||||||
$this->setNormalizer($option, $normalizer);
|
$this->setNormalizer($option, $normalizer);
|
||||||
@ -1029,7 +1029,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
|||||||
*/
|
*/
|
||||||
public function set($option, $value)
|
public function set($option, $value)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the setDefaults() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the setDefaults() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->setDefault($option, $value);
|
return $this->setDefault($option, $value);
|
||||||
}
|
}
|
||||||
@ -1041,7 +1041,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
|||||||
*/
|
*/
|
||||||
public function replace(array $defaults)
|
public function replace(array $defaults)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the clear() and setDefaults() methods instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the clear() and setDefaults() methods instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->clear();
|
$this->clear();
|
||||||
|
|
||||||
@ -1055,7 +1055,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
|||||||
*/
|
*/
|
||||||
public function overload($option, $value)
|
public function overload($option, $value)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the setDefault() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the setDefault() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->setDefault($option, $value);
|
return $this->setDefault($option, $value);
|
||||||
}
|
}
|
||||||
@ -1067,7 +1067,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
|||||||
*/
|
*/
|
||||||
public function get($option)
|
public function get($option)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the ArrayAccess syntax instead to get an option value.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the ArrayAccess syntax instead to get an option value.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->offsetGet($option);
|
return $this->offsetGet($option);
|
||||||
}
|
}
|
||||||
@ -1079,7 +1079,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
|||||||
*/
|
*/
|
||||||
public function has($option)
|
public function has($option)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the ArrayAccess syntax instead to get an option value.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the ArrayAccess syntax instead to get an option value.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->offsetExists($option);
|
return $this->offsetExists($option);
|
||||||
}
|
}
|
||||||
@ -1091,7 +1091,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
|||||||
*/
|
*/
|
||||||
public function replaceDefaults(array $defaultValues)
|
public function replaceDefaults(array $defaultValues)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the clear() and setDefaults() methods instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the clear() and setDefaults() methods instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->clear();
|
$this->clear();
|
||||||
|
|
||||||
@ -1105,7 +1105,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
|||||||
*/
|
*/
|
||||||
public function setOptional(array $optionNames)
|
public function setOptional(array $optionNames)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the setDefined() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the setDefined() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->setDefined($optionNames);
|
return $this->setDefined($optionNames);
|
||||||
}
|
}
|
||||||
@ -1117,7 +1117,7 @@ class OptionsResolver implements Options, OptionsResolverInterface
|
|||||||
*/
|
*/
|
||||||
public function isKnown($option)
|
public function isKnown($option)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the isDefined() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the isDefined() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->isDefined($option);
|
return $this->isDefined($option);
|
||||||
}
|
}
|
||||||
|
@ -1036,7 +1036,7 @@ class Process
|
|||||||
*/
|
*/
|
||||||
public function getStdin()
|
public function getStdin()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the getInput() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Use the getInput() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->getInput();
|
return $this->getInput();
|
||||||
}
|
}
|
||||||
@ -1066,7 +1066,7 @@ class Process
|
|||||||
*/
|
*/
|
||||||
public function setStdin($stdin)
|
public function setStdin($stdin)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the setInput() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Use the setInput() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->setInput($stdin);
|
return $this->setInput($stdin);
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ class ProcessUtils
|
|||||||
}
|
}
|
||||||
// deprecated as of Symfony 2.5, to be removed in 3.0
|
// deprecated as of Symfony 2.5, to be removed in 3.0
|
||||||
if (is_object($input) && method_exists($input, '__toString')) {
|
if (is_object($input) && method_exists($input, '__toString')) {
|
||||||
@trigger_error('Passing an object as an input is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('Passing an object as an input is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return (string) $input;
|
return (string) $input;
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ final class PropertyAccess
|
|||||||
*/
|
*/
|
||||||
public static function getPropertyAccessor()
|
public static function getPropertyAccessor()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the createPropertyAccessor() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the createPropertyAccessor() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return self::createPropertyAccessor();
|
return self::createPropertyAccessor();
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ class Route
|
|||||||
*/
|
*/
|
||||||
public function setPattern($pattern)
|
public function setPattern($pattern)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. Use the setPath() method instead and use the "path" option instead of the "pattern" option in the route definition.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. Use the setPath() method instead and use the "path" option instead of the "pattern" option in the route definition.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->path = $pattern;
|
$this->path = $pattern;
|
||||||
}
|
}
|
||||||
@ -67,7 +67,7 @@ class Route
|
|||||||
*/
|
*/
|
||||||
public function getPattern()
|
public function getPattern()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. Use the getPath() method instead and use the "path" option instead of the "pattern" option in the route definition.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. Use the getPath() method instead and use the "path" option instead of the "pattern" option in the route definition.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->path;
|
return $this->path;
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ class Route implements \Serializable
|
|||||||
*/
|
*/
|
||||||
public function getPattern()
|
public function getPattern()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. Use the getPath() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. Use the getPath() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->path;
|
return $this->path;
|
||||||
}
|
}
|
||||||
@ -132,7 +132,7 @@ class Route implements \Serializable
|
|||||||
*/
|
*/
|
||||||
public function setPattern($pattern)
|
public function setPattern($pattern)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. Use the setPath() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. Use the setPath() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->setPath($pattern);
|
return $this->setPath($pattern);
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ class JsonDecode implements DecoderInterface
|
|||||||
*/
|
*/
|
||||||
public function getLastError()
|
public function getLastError()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Catch the exception raised by the decode() method instead to get the last JSON decoding error.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Catch the exception raised by the decode() method instead to get the last JSON decoding error.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->lastError;
|
return $this->lastError;
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ class JsonEncode implements EncoderInterface
|
|||||||
*/
|
*/
|
||||||
public function getLastError()
|
public function getLastError()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Catch the exception raised by the encode() method instead to get the last JSON encoding error.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Catch the exception raised by the encode() method instead to get the last JSON encoding error.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->lastError;
|
return $this->lastError;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ class JsonEncoder implements EncoderInterface, DecoderInterface
|
|||||||
*/
|
*/
|
||||||
public function getLastEncodingError()
|
public function getLastEncodingError()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Catch the exception raised by the Symfony\Component\Serializer\Encoder\JsonEncode::encode() method instead to get the last JSON encoding error.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Catch the exception raised by the Symfony\Component\Serializer\Encoder\JsonEncode::encode() method instead to get the last JSON encoding error.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->encodingImpl->getLastError();
|
return $this->encodingImpl->getLastError();
|
||||||
}
|
}
|
||||||
@ -52,7 +52,7 @@ class JsonEncoder implements EncoderInterface, DecoderInterface
|
|||||||
*/
|
*/
|
||||||
public function getLastDecodingError()
|
public function getLastDecodingError()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Catch the exception raised by the Symfony\Component\Serializer\Encoder\JsonDecode::decode() method instead to get the last JSON decoding error.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Catch the exception raised by the Symfony\Component\Serializer\Encoder\JsonDecode::decode() method instead to get the last JSON decoding error.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->decodingImpl->getLastError();
|
return $this->decodingImpl->getLastError();
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ abstract class Loader implements LoaderInterface
|
|||||||
*/
|
*/
|
||||||
public function setDebugger(DebuggerInterface $debugger)
|
public function setDebugger(DebuggerInterface $debugger)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0. Use the setLogger() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0. Use the setLogger() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->debugger = $debugger;
|
$this->debugger = $debugger;
|
||||||
}
|
}
|
||||||
|
@ -154,7 +154,7 @@ class Translator implements TranslatorInterface, TranslatorBagInterface
|
|||||||
*/
|
*/
|
||||||
public function setFallbackLocale($locales)
|
public function setFallbackLocale($locales)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the setFallbackLocales() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the setFallbackLocales() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->setFallbackLocales(is_array($locales) ? $locales : array($locales));
|
$this->setFallbackLocales(is_array($locales) ? $locales : array($locales));
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,7 @@ class ConstraintViolation implements ConstraintViolationInterface
|
|||||||
*/
|
*/
|
||||||
public function getMessageParameters()
|
public function getMessageParameters()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7, to be removed in 3.0. Use the ConstraintViolation::getParameters() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7, to be removed in 3.0. Use the ConstraintViolation::getParameters() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->parameters;
|
return $this->parameters;
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ class ConstraintViolation implements ConstraintViolationInterface
|
|||||||
*/
|
*/
|
||||||
public function getMessagePluralization()
|
public function getMessagePluralization()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.7, to be removed in 3.0. Use the ConstraintViolation::getPlural() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.7, to be removed in 3.0. Use the ConstraintViolation::getPlural() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->plural;
|
return $this->plural;
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable
|
|||||||
*/
|
*/
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return new \ArrayIterator($this->groups);
|
return new \ArrayIterator($this->groups);
|
||||||
}
|
}
|
||||||
@ -122,7 +122,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable
|
|||||||
*/
|
*/
|
||||||
public function offsetExists($offset)
|
public function offsetExists($offset)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return isset($this->groups[$offset]);
|
return isset($this->groups[$offset]);
|
||||||
}
|
}
|
||||||
@ -142,7 +142,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable
|
|||||||
*/
|
*/
|
||||||
public function offsetGet($offset)
|
public function offsetGet($offset)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (!isset($this->groups[$offset])) {
|
if (!isset($this->groups[$offset])) {
|
||||||
throw new OutOfBoundsException(sprintf(
|
throw new OutOfBoundsException(sprintf(
|
||||||
@ -166,7 +166,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable
|
|||||||
*/
|
*/
|
||||||
public function offsetSet($offset, $value)
|
public function offsetSet($offset, $value)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (null !== $offset) {
|
if (null !== $offset) {
|
||||||
$this->groups[$offset] = $value;
|
$this->groups[$offset] = $value;
|
||||||
@ -188,7 +188,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable
|
|||||||
*/
|
*/
|
||||||
public function offsetUnset($offset)
|
public function offsetUnset($offset)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
unset($this->groups[$offset]);
|
unset($this->groups[$offset]);
|
||||||
}
|
}
|
||||||
@ -204,7 +204,7 @@ class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable
|
|||||||
*/
|
*/
|
||||||
public function count()
|
public function count()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return count($this->groups);
|
return count($this->groups);
|
||||||
}
|
}
|
||||||
|
@ -321,7 +321,7 @@ class ExecutionContext implements ExecutionContextInterface
|
|||||||
*/
|
*/
|
||||||
public function addViolationAt($subPath, $message, array $parameters = array(), $invalidValue = null, $plural = null, $code = null)
|
public function addViolationAt($subPath, $message, array $parameters = array(), $invalidValue = null, $plural = null, $code = null)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the '.__CLASS__.'::buildViolation method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Use the '.__CLASS__.'::buildViolation method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (func_num_args() > 2) {
|
if (func_num_args() > 2) {
|
||||||
$this
|
$this
|
||||||
@ -348,7 +348,7 @@ class ExecutionContext implements ExecutionContextInterface
|
|||||||
*/
|
*/
|
||||||
public function validate($value, $subPath = '', $groups = null, $traverse = false, $deep = false)
|
public function validate($value, $subPath = '', $groups = null, $traverse = false, $deep = false)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the '.__CLASS__.'::getValidator() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Use the '.__CLASS__.'::getValidator() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (is_array($value)) {
|
if (is_array($value)) {
|
||||||
// The $traverse flag is ignored for arrays
|
// The $traverse flag is ignored for arrays
|
||||||
@ -386,7 +386,7 @@ class ExecutionContext implements ExecutionContextInterface
|
|||||||
*/
|
*/
|
||||||
public function validateValue($value, $constraints, $subPath = '', $groups = null)
|
public function validateValue($value, $constraints, $subPath = '', $groups = null)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the '.__CLASS__.'::getValidator() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Use the '.__CLASS__.'::getValidator() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this
|
return $this
|
||||||
->getValidator()
|
->getValidator()
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Mapping\Cache;
|
namespace Symfony\Component\Validator\Mapping\Cache;
|
||||||
|
|
||||||
@trigger_error('The '.__NAMESPACE__.'\ApcCache class is deprecated since version 2.5 and will be removed in 3.0. Use DoctrineCache with the Doctrine\Common\Cache\ApcCache class instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__NAMESPACE__.'\ApcCache class is deprecated since Symfony 2.5 and will be removed in 3.0. Use DoctrineCache with the Doctrine\Common\Cache\ApcCache class instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ class ClassMetadata extends ElementMetadata implements ClassMetadataInterface
|
|||||||
*/
|
*/
|
||||||
public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath, $propagatedGroup = null)
|
public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath, $propagatedGroup = null)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (null === $propagatedGroup && Constraint::DEFAULT_GROUP === $group
|
if (null === $propagatedGroup && Constraint::DEFAULT_GROUP === $group
|
||||||
&& ($this->hasGroupSequence() || $this->isGroupSequenceProvider())) {
|
&& ($this->hasGroupSequence() || $this->isGroupSequenceProvider())) {
|
||||||
@ -423,7 +423,7 @@ class ClassMetadata extends ElementMetadata implements ClassMetadataInterface
|
|||||||
*/
|
*/
|
||||||
protected function addMemberMetadata(MemberMetadata $metadata)
|
protected function addMemberMetadata(MemberMetadata $metadata)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the addPropertyMetadata() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the addPropertyMetadata() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->addPropertyMetadata($metadata);
|
$this->addPropertyMetadata($metadata);
|
||||||
}
|
}
|
||||||
@ -439,7 +439,7 @@ class ClassMetadata extends ElementMetadata implements ClassMetadataInterface
|
|||||||
*/
|
*/
|
||||||
public function hasMemberMetadatas($property)
|
public function hasMemberMetadatas($property)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the hasPropertyMetadata() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the hasPropertyMetadata() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->hasPropertyMetadata($property);
|
return $this->hasPropertyMetadata($property);
|
||||||
}
|
}
|
||||||
@ -455,7 +455,7 @@ class ClassMetadata extends ElementMetadata implements ClassMetadataInterface
|
|||||||
*/
|
*/
|
||||||
public function getMemberMetadatas($property)
|
public function getMemberMetadatas($property)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.6 and will be removed in 3.0. Use the getPropertyMetadata() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.6 and will be removed in 3.0. Use the getPropertyMetadata() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return $this->getPropertyMetadata($property);
|
return $this->getPropertyMetadata($property);
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat
|
|||||||
*/
|
*/
|
||||||
public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath, $propagatedGroup = null)
|
public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath, $propagatedGroup = null)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$visitor->visit($this, $value, $group, $propertyPath);
|
$visitor->visit($this, $value, $group, $propertyPath);
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat
|
|||||||
*/
|
*/
|
||||||
public function isCascaded()
|
public function isCascaded()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the getCascadingStrategy() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Use the getCascadingStrategy() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return (bool) ($this->cascadingStrategy & CascadingStrategy::CASCADE);
|
return (bool) ($this->cascadingStrategy & CascadingStrategy::CASCADE);
|
||||||
}
|
}
|
||||||
@ -200,7 +200,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat
|
|||||||
*/
|
*/
|
||||||
public function isCollectionCascaded()
|
public function isCollectionCascaded()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the getTraversalStrategy() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Use the getTraversalStrategy() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return (bool) ($this->traversalStrategy & (TraversalStrategy::IMPLICIT | TraversalStrategy::TRAVERSE));
|
return (bool) ($this->traversalStrategy & (TraversalStrategy::IMPLICIT | TraversalStrategy::TRAVERSE));
|
||||||
}
|
}
|
||||||
@ -216,7 +216,7 @@ abstract class MemberMetadata extends ElementMetadata implements PropertyMetadat
|
|||||||
*/
|
*/
|
||||||
public function isCollectionCascadedDeeply()
|
public function isCollectionCascadedDeeply()
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. Use the getTraversalStrategy() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. Use the getTraversalStrategy() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
return !($this->traversalStrategy & TraversalStrategy::STOP_RECURSION);
|
return !($this->traversalStrategy & TraversalStrategy::STOP_RECURSION);
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,7 @@ abstract class AbstractConstraintValidatorTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
protected function assertViolation($message, array $parameters = array(), $propertyPath = 'property.path', $invalidValue = 'InvalidValue', $plural = null, $code = null)
|
protected function assertViolation($message, array $parameters = array(), $propertyPath = 'property.path', $invalidValue = 'InvalidValue', $plural = null, $code = null)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the buildViolation() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the buildViolation() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$this->buildViolation($message)
|
$this->buildViolation($message)
|
||||||
->setParameters($parameters)
|
->setParameters($parameters)
|
||||||
@ -275,7 +275,7 @@ abstract class AbstractConstraintValidatorTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
protected function assertViolations(array $expected)
|
protected function assertViolations(array $expected)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.3 and will be removed in 3.0. Use the buildViolation() method instead.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.3 and will be removed in 3.0. Use the buildViolation() method instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
$violations = $this->context->getViolations();
|
$violations = $this->context->getViolations();
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Validator;
|
namespace Symfony\Component\Validator\Validator;
|
||||||
|
|
||||||
@trigger_error('The '.__NAMESPACE__.'\LegacyValidator class is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__NAMESPACE__.'\LegacyValidator class is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A validator that supports both the API of Symfony < 2.5 and Symfony 2.5+.
|
* A validator that supports both the API of Symfony < 2.5 and Symfony 2.5+.
|
||||||
|
@ -285,7 +285,7 @@ class ValidatorBuilder implements ValidatorBuilderInterface
|
|||||||
*/
|
*/
|
||||||
public function setPropertyAccessor(PropertyAccessorInterface $propertyAccessor)
|
public function setPropertyAccessor(PropertyAccessorInterface $propertyAccessor)
|
||||||
{
|
{
|
||||||
@trigger_error('The '.__METHOD__.' method is deprecated since version 2.5 and will be removed in 3.0. The validator will function without a property accessor.', E_USER_DEPRECATED);
|
@trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.5 and will be removed in 3.0. The validator will function without a property accessor.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (null !== $this->validatorFactory) {
|
if (null !== $this->validatorFactory) {
|
||||||
throw new ValidatorException('You cannot set a property accessor after setting a custom validator factory. Configure your validator factory instead.');
|
throw new ValidatorException('You cannot set a property accessor after setting a custom validator factory. Configure your validator factory instead.');
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Violation;
|
namespace Symfony\Component\Validator\Violation;
|
||||||
|
|
||||||
@trigger_error('The '.__NAMESPACE__.'\LegacyConstraintViolationBuilder class is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
@trigger_error('The '.__NAMESPACE__.'\LegacyConstraintViolationBuilder class is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
use Symfony\Component\Validator\ExecutionContextInterface;
|
use Symfony\Component\Validator\ExecutionContextInterface;
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ class Yaml
|
|||||||
* you must validate the input before calling this method. Passing a file
|
* you must validate the input before calling this method. Passing a file
|
||||||
* as an input is a deprecated feature and will be removed in 3.0.
|
* as an input is a deprecated feature and will be removed in 3.0.
|
||||||
*
|
*
|
||||||
* Note: the ability to pass file names to the Yaml::parse method is deprecated since version 2.2 and will be removed in 3.0. Pass the YAML contents of the file instead.
|
* Note: the ability to pass file names to the Yaml::parse method is deprecated since Symfony 2.2 and will be removed in 3.0. Pass the YAML contents of the file instead.
|
||||||
*
|
*
|
||||||
* @param string $input Path to a YAML file or a string containing YAML
|
* @param string $input Path to a YAML file or a string containing YAML
|
||||||
* @param bool $exceptionOnInvalidType True if an exception must be thrown on invalid types false otherwise
|
* @param bool $exceptionOnInvalidType True if an exception must be thrown on invalid types false otherwise
|
||||||
@ -49,7 +49,7 @@ class Yaml
|
|||||||
// if input is a file, process it
|
// if input is a file, process it
|
||||||
$file = '';
|
$file = '';
|
||||||
if (false === strpos($input, "\n") && is_file($input)) {
|
if (false === strpos($input, "\n") && is_file($input)) {
|
||||||
@trigger_error('The ability to pass file names to the '.__METHOD__.' method is deprecated since version 2.2 and will be removed in 3.0. Pass the YAML contents of the file instead.', E_USER_DEPRECATED);
|
@trigger_error('The ability to pass file names to the '.__METHOD__.' method is deprecated since Symfony 2.2 and will be removed in 3.0. Pass the YAML contents of the file instead.', E_USER_DEPRECATED);
|
||||||
|
|
||||||
if (false === is_readable($input)) {
|
if (false === is_readable($input)) {
|
||||||
throw new ParseException(sprintf('Unable to parse "%s" as the file is not readable.', $input));
|
throw new ParseException(sprintf('Unable to parse "%s" as the file is not readable.', $input));
|
||||||
|
Reference in New Issue
Block a user