ad84fb78e1
* 2.6: [2.3] Remove useless tests skips [ClassLoader] removes deprecated classes from documentation. [ClassLoader] added missing deprecation notice. [HttpFoundation] Fix an issue caused by php's Bug #66606. [Yaml] Update README.md Don't add Accept-Range header on unsafe HTTP requests simplify hasScheme method adapted merge to 2.5 adapted previous commit for 2.3 [Security] Don't send remember cookie for sub request [Security] fixed wrong phpdoc [HttpKernel] Fix UriSigner::check when _hash is not at the end of the uri [2.3] Cleanup deprecations Conflicts: src/Symfony/Bridge/Twig/composer.json src/Symfony/Bundle/FrameworkBundle/composer.json src/Symfony/Bundle/TwigBundle/composer.json src/Symfony/Component/ClassLoader/UniversalClassLoader.php src/Symfony/Component/Debug/composer.json src/Symfony/Component/Form/ButtonBuilder.php src/Symfony/Component/HttpKernel/Exception/FatalErrorException.php src/Symfony/Component/HttpKernel/Exception/FlattenException.php src/Symfony/Component/HttpKernel/composer.json src/Symfony/Component/Security/composer.json src/Symfony/Component/Validator/composer.json
63 lines
1.6 KiB
PHP
63 lines
1.6 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\Component\PropertyAccess;
|
|
|
|
/**
|
|
* Entry point of the PropertyAccess component.
|
|
*
|
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
|
*/
|
|
final class PropertyAccess
|
|
{
|
|
/**
|
|
* Creates a property accessor with the default configuration.
|
|
*
|
|
* @return PropertyAccessor The new property accessor
|
|
*/
|
|
public static function createPropertyAccessor()
|
|
{
|
|
return self::createPropertyAccessorBuilder()->getPropertyAccessor();
|
|
}
|
|
|
|
/**
|
|
* Creates a property accessor builder.
|
|
*
|
|
* @return PropertyAccessorBuilder The new property accessor builder
|
|
*/
|
|
public static function createPropertyAccessorBuilder()
|
|
{
|
|
return new PropertyAccessorBuilder();
|
|
}
|
|
|
|
/**
|
|
* Alias of {@link createPropertyAccessor}.
|
|
*
|
|
* @return PropertyAccessor The new property accessor
|
|
*
|
|
* @deprecated Deprecated since version 2.3, to be removed in 3.0. Use
|
|
* {@link createPropertyAccessor()} instead.
|
|
*/
|
|
public static function getPropertyAccessor()
|
|
{
|
|
trigger_error('PropertyAccess::getPropertyAccessor() is deprecated since version 2.3 and will be removed in 3.0. Use PropertyAccess::createPropertyAccessor() instead.', E_USER_DEPRECATED);
|
|
|
|
return self::createPropertyAccessor();
|
|
}
|
|
|
|
/**
|
|
* This class cannot be instantiated.
|
|
*/
|
|
private function __construct()
|
|
{
|
|
}
|
|
}
|