Remove useless docblocks
This commit is contained in:
parent
711bdc950d
commit
2443511324
@ -22,11 +22,11 @@ use Symfony\Component\Config\Resource\FileResource;
|
|||||||
*/
|
*/
|
||||||
class DoctrineValidationPass implements CompilerPassInterface
|
class DoctrineValidationPass implements CompilerPassInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $managerType;
|
private $managerType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $managerType
|
||||||
|
*/
|
||||||
public function __construct($managerType)
|
public function __construct($managerType)
|
||||||
{
|
{
|
||||||
$this->managerType = $managerType;
|
$this->managerType = $managerType;
|
||||||
|
@ -26,9 +26,6 @@ use Symfony\Component\DependencyInjection\Reference;
|
|||||||
*/
|
*/
|
||||||
class RegisterEventListenersAndSubscribersPass implements CompilerPassInterface
|
class RegisterEventListenersAndSubscribersPass implements CompilerPassInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string|string[]
|
|
||||||
*/
|
|
||||||
private $connections;
|
private $connections;
|
||||||
private $eventManagers;
|
private $eventManagers;
|
||||||
private $managerTemplate;
|
private $managerTemplate;
|
||||||
|
@ -113,7 +113,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface
|
|||||||
* present to enable the mapping. Set to false
|
* present to enable the mapping. Set to false
|
||||||
* to not do any check, optional.
|
* to not do any check, optional.
|
||||||
* @param string $configurationPattern Pattern for the Configuration service name
|
* @param string $configurationPattern Pattern for the Configuration service name
|
||||||
* @param string $registerAliasMethodName name of Configuration class method to
|
* @param string $registerAliasMethodName Name of Configuration class method to
|
||||||
* register alias
|
* register alias
|
||||||
* @param string[] $aliasMap Map of alias to namespace
|
* @param string[] $aliasMap Map of alias to namespace
|
||||||
*/
|
*/
|
||||||
@ -178,7 +178,7 @@ abstract class RegisterMappingsPass implements CompilerPassInterface
|
|||||||
/**
|
/**
|
||||||
* Create the service definition for the metadata driver.
|
* Create the service definition for the metadata driver.
|
||||||
*
|
*
|
||||||
* @param ContainerBuilder $container passed on in case an extending class
|
* @param ContainerBuilder $container Passed on in case an extending class
|
||||||
* needs access to the container
|
* needs access to the container
|
||||||
*
|
*
|
||||||
* @return Definition|Reference the metadata driver to add to all chain drivers
|
* @return Definition|Reference the metadata driver to add to all chain drivers
|
||||||
|
@ -20,9 +20,6 @@ use Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheInterface;
|
|||||||
*/
|
*/
|
||||||
class DoctrineParserCache implements ParserCacheInterface
|
class DoctrineParserCache implements ParserCacheInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Cache
|
|
||||||
*/
|
|
||||||
private $cache;
|
private $cache;
|
||||||
|
|
||||||
public function __construct(Cache $cache)
|
public function __construct(Cache $cache)
|
||||||
|
@ -23,29 +23,10 @@ use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface;
|
|||||||
*/
|
*/
|
||||||
class DoctrineChoiceLoader implements ChoiceLoaderInterface
|
class DoctrineChoiceLoader implements ChoiceLoaderInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var ChoiceListFactoryInterface
|
|
||||||
*/
|
|
||||||
private $factory;
|
private $factory;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var ObjectManager
|
|
||||||
*/
|
|
||||||
private $manager;
|
private $manager;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $class;
|
private $class;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var IdReader
|
|
||||||
*/
|
|
||||||
private $idReader;
|
private $idReader;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var null|EntityLoaderInterface
|
|
||||||
*/
|
|
||||||
private $objectLoader;
|
private $objectLoader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,13 +41,10 @@ class DoctrineChoiceLoader implements ChoiceLoaderInterface
|
|||||||
* passed which optimizes the object loading for one of the Doctrine
|
* passed which optimizes the object loading for one of the Doctrine
|
||||||
* mapper implementations.
|
* mapper implementations.
|
||||||
*
|
*
|
||||||
* @param ChoiceListFactoryInterface $factory The factory for creating
|
* @param ChoiceListFactoryInterface $factory The factory for creating the loaded choice list
|
||||||
* the loaded choice list
|
|
||||||
* @param ObjectManager $manager The object manager
|
* @param ObjectManager $manager The object manager
|
||||||
* @param string $class The class name of the
|
* @param string $class The class name of the loaded objects
|
||||||
* loaded objects
|
* @param IdReader $idReader The reader for the object IDs
|
||||||
* @param IdReader $idReader the reader for the object
|
|
||||||
* IDs
|
|
||||||
* @param null|EntityLoaderInterface $objectLoader The objects loader
|
* @param null|EntityLoaderInterface $objectLoader The objects loader
|
||||||
*/
|
*/
|
||||||
public function __construct(ChoiceListFactoryInterface $factory, ObjectManager $manager, $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null)
|
public function __construct(ChoiceListFactoryInterface $factory, ObjectManager $manager, $class, IdReader $idReader = null, EntityLoaderInterface $objectLoader = null)
|
||||||
|
@ -24,29 +24,10 @@ use Symfony\Component\Form\Exception\RuntimeException;
|
|||||||
*/
|
*/
|
||||||
class IdReader
|
class IdReader
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var ObjectManager
|
|
||||||
*/
|
|
||||||
private $om;
|
private $om;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var ClassMetadata
|
|
||||||
*/
|
|
||||||
private $classMetadata;
|
private $classMetadata;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
private $singleId;
|
private $singleId;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
private $intId;
|
private $intId;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $idField;
|
private $idField;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,14 +25,7 @@ class DoctrineOrmExtension extends AbstractExtension
|
|||||||
{
|
{
|
||||||
protected $registry;
|
protected $registry;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var PropertyAccessorInterface
|
|
||||||
*/
|
|
||||||
private $propertyAccessor;
|
private $propertyAccessor;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var ChoiceListFactoryInterface
|
|
||||||
*/
|
|
||||||
private $choiceListFactory;
|
private $choiceListFactory;
|
||||||
|
|
||||||
public function __construct(ManagerRegistry $registry, PropertyAccessorInterface $propertyAccessor = null, ChoiceListFactoryInterface $choiceListFactory = null)
|
public function __construct(ManagerRegistry $registry, PropertyAccessorInterface $propertyAccessor = null, ChoiceListFactoryInterface $choiceListFactory = null)
|
||||||
|
@ -25,9 +25,6 @@ use Symfony\Component\Validator\ConstraintValidator;
|
|||||||
*/
|
*/
|
||||||
class UniqueEntityValidator extends ConstraintValidator
|
class UniqueEntityValidator extends ConstraintValidator
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var ManagerRegistry
|
|
||||||
*/
|
|
||||||
private $registry;
|
private $registry;
|
||||||
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
public function __construct(ManagerRegistry $registry)
|
||||||
|
@ -25,19 +25,8 @@ use Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\DumperInterface;
|
|||||||
*/
|
*/
|
||||||
class ProxyDumper implements DumperInterface
|
class ProxyDumper implements DumperInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $salt;
|
private $salt;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var LazyLoadingValueHolderGenerator
|
|
||||||
*/
|
|
||||||
private $proxyGenerator;
|
private $proxyGenerator;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var BaseGeneratorStrategy
|
|
||||||
*/
|
|
||||||
private $classGenerator;
|
private $classGenerator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -23,10 +23,6 @@ use Twig\Extension\AbstractExtension;
|
|||||||
class StopwatchExtension extends AbstractExtension
|
class StopwatchExtension extends AbstractExtension
|
||||||
{
|
{
|
||||||
private $stopwatch;
|
private $stopwatch;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
private $enabled;
|
private $enabled;
|
||||||
|
|
||||||
public function __construct(Stopwatch $stopwatch = null, $enabled = true)
|
public function __construct(Stopwatch $stopwatch = null, $enabled = true)
|
||||||
|
@ -30,9 +30,6 @@ use Twig\NodeVisitor\AbstractNodeVisitor;
|
|||||||
*/
|
*/
|
||||||
class TranslationDefaultDomainNodeVisitor extends AbstractNodeVisitor
|
class TranslationDefaultDomainNodeVisitor extends AbstractNodeVisitor
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Scope
|
|
||||||
*/
|
|
||||||
private $scope;
|
private $scope;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -42,11 +42,6 @@ class TwigExtractor extends AbstractFileExtractor implements ExtractorInterface
|
|||||||
*/
|
*/
|
||||||
private $prefix = '';
|
private $prefix = '';
|
||||||
|
|
||||||
/**
|
|
||||||
* The twig environment.
|
|
||||||
*
|
|
||||||
* @var Environment
|
|
||||||
*/
|
|
||||||
private $twig;
|
private $twig;
|
||||||
|
|
||||||
public function __construct(Environment $twig)
|
public function __construct(Environment $twig)
|
||||||
|
@ -21,9 +21,6 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
|
|||||||
*/
|
*/
|
||||||
class SessionListener extends BaseSessionListener
|
class SessionListener extends BaseSessionListener
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var ContainerInterface
|
|
||||||
*/
|
|
||||||
private $container;
|
private $container;
|
||||||
|
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
|
@ -43,8 +43,8 @@ class TranslationLoader
|
|||||||
/**
|
/**
|
||||||
* Loads translation messages from a directory to the catalogue.
|
* Loads translation messages from a directory to the catalogue.
|
||||||
*
|
*
|
||||||
* @param string $directory the directory to look into
|
* @param string $directory The directory to look into
|
||||||
* @param MessageCatalogue $catalogue the catalogue
|
* @param MessageCatalogue $catalogue The catalogue
|
||||||
*/
|
*/
|
||||||
public function loadMessages($directory, MessageCatalogue $catalogue)
|
public function loadMessages($directory, MessageCatalogue $catalogue)
|
||||||
{
|
{
|
||||||
|
@ -31,12 +31,12 @@ use Twig\Loader\ExistsLoaderInterface;
|
|||||||
class ExceptionController
|
class ExceptionController
|
||||||
{
|
{
|
||||||
protected $twig;
|
protected $twig;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var bool Show error (false) or exception (true) pages by default
|
|
||||||
*/
|
|
||||||
protected $debug;
|
protected $debug;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param Environment $twig
|
||||||
|
* @param bool $debug Show error (false) or exception (true) pages by default
|
||||||
|
*/
|
||||||
public function __construct(Environment $twig, $debug)
|
public function __construct(Environment $twig, $debug)
|
||||||
{
|
{
|
||||||
$this->twig = $twig;
|
$this->twig = $twig;
|
||||||
|
@ -49,12 +49,6 @@ namespace Symfony\Component\ClassLoader;
|
|||||||
class XcacheClassLoader
|
class XcacheClassLoader
|
||||||
{
|
{
|
||||||
private $prefix;
|
private $prefix;
|
||||||
|
|
||||||
/**
|
|
||||||
* A class loader object that implements the findFile() method.
|
|
||||||
*
|
|
||||||
* @var object
|
|
||||||
*/
|
|
||||||
private $decorated;
|
private $decorated;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -19,9 +19,6 @@ namespace Symfony\Component\Config;
|
|||||||
*/
|
*/
|
||||||
class ConfigCacheFactory implements ConfigCacheFactoryInterface
|
class ConfigCacheFactory implements ConfigCacheFactoryInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var bool Debug flag passed to the ConfigCache
|
|
||||||
*/
|
|
||||||
private $debug;
|
private $debug;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -81,7 +81,7 @@ class ArrayNode extends BaseNode implements PrototypeNodeInterface
|
|||||||
/**
|
/**
|
||||||
* Sets the xml remappings that should be performed.
|
* Sets the xml remappings that should be performed.
|
||||||
*
|
*
|
||||||
* @param array $remappings an array of the form array(array(string, string))
|
* @param array $remappings An array of the form array(array(string, string))
|
||||||
*/
|
*/
|
||||||
public function setXmlRemappings(array $remappings)
|
public function setXmlRemappings(array $remappings)
|
||||||
{
|
{
|
||||||
|
@ -67,7 +67,7 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition
|
|||||||
/**
|
/**
|
||||||
* Sets a prototype for child nodes.
|
* Sets a prototype for child nodes.
|
||||||
*
|
*
|
||||||
* @param string $type the type of node
|
* @param string $type The type of node
|
||||||
*
|
*
|
||||||
* @return NodeDefinition
|
* @return NodeDefinition
|
||||||
*/
|
*/
|
||||||
@ -97,7 +97,7 @@ class ArrayNodeDefinition extends NodeDefinition implements ParentNodeDefinition
|
|||||||
*
|
*
|
||||||
* This method is applicable to prototype nodes only.
|
* This method is applicable to prototype nodes only.
|
||||||
*
|
*
|
||||||
* @param int|string|array|null $children the number of children|The child name|The children names to be added
|
* @param int|string|array|null $children The number of children|The child name|The children names to be added
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
|
@ -61,7 +61,7 @@ class NodeBuilder implements NodeParentInterface
|
|||||||
/**
|
/**
|
||||||
* Creates a child scalar node.
|
* Creates a child scalar node.
|
||||||
*
|
*
|
||||||
* @param string $name the name of the node
|
* @param string $name The name of the node
|
||||||
*
|
*
|
||||||
* @return ScalarNodeDefinition The child node
|
* @return ScalarNodeDefinition The child node
|
||||||
*/
|
*/
|
||||||
@ -85,7 +85,7 @@ class NodeBuilder implements NodeParentInterface
|
|||||||
/**
|
/**
|
||||||
* Creates a child integer node.
|
* Creates a child integer node.
|
||||||
*
|
*
|
||||||
* @param string $name the name of the node
|
* @param string $name The name of the node
|
||||||
*
|
*
|
||||||
* @return IntegerNodeDefinition The child node
|
* @return IntegerNodeDefinition The child node
|
||||||
*/
|
*/
|
||||||
@ -97,7 +97,7 @@ class NodeBuilder implements NodeParentInterface
|
|||||||
/**
|
/**
|
||||||
* Creates a child float node.
|
* Creates a child float node.
|
||||||
*
|
*
|
||||||
* @param string $name the name of the node
|
* @param string $name The name of the node
|
||||||
*
|
*
|
||||||
* @return FloatNodeDefinition The child node
|
* @return FloatNodeDefinition The child node
|
||||||
*/
|
*/
|
||||||
|
@ -27,8 +27,6 @@ final class ConsoleEvents
|
|||||||
* instance.
|
* instance.
|
||||||
*
|
*
|
||||||
* @Event
|
* @Event
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
*/
|
||||||
const COMMAND = 'console.command';
|
const COMMAND = 'console.command';
|
||||||
|
|
||||||
@ -40,8 +38,6 @@ final class ConsoleEvents
|
|||||||
* instance.
|
* instance.
|
||||||
*
|
*
|
||||||
* @Event
|
* @Event
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
*/
|
||||||
const TERMINATE = 'console.terminate';
|
const TERMINATE = 'console.terminate';
|
||||||
|
|
||||||
@ -54,8 +50,6 @@ final class ConsoleEvents
|
|||||||
* instance.
|
* instance.
|
||||||
*
|
*
|
||||||
* @Event
|
* @Event
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
*/
|
||||||
const EXCEPTION = 'console.exception';
|
const EXCEPTION = 'console.exception';
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,6 @@ class ConsoleCommandEvent extends ConsoleEvent
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if the command should be run or skipped.
|
* Indicates if the command should be run or skipped.
|
||||||
*
|
|
||||||
* @var bool
|
|
||||||
*/
|
*/
|
||||||
private $commandShouldRun = true;
|
private $commandShouldRun = true;
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@ use Symfony\Component\Console\Output\OutputInterface;
|
|||||||
*/
|
*/
|
||||||
class ProgressBar
|
class ProgressBar
|
||||||
{
|
{
|
||||||
// options
|
|
||||||
private $barWidth = 28;
|
private $barWidth = 28;
|
||||||
private $barChar;
|
private $barChar;
|
||||||
private $emptyBarChar = '-';
|
private $emptyBarChar = '-';
|
||||||
@ -30,10 +29,6 @@ class ProgressBar
|
|||||||
private $format;
|
private $format;
|
||||||
private $internalFormat;
|
private $internalFormat;
|
||||||
private $redrawFreq = 1;
|
private $redrawFreq = 1;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var OutputInterface
|
|
||||||
*/
|
|
||||||
private $output;
|
private $output;
|
||||||
private $step = 0;
|
private $step = 0;
|
||||||
private $max;
|
private $max;
|
||||||
|
@ -29,9 +29,6 @@ class TableHelper extends Helper
|
|||||||
const LAYOUT_BORDERLESS = 1;
|
const LAYOUT_BORDERLESS = 1;
|
||||||
const LAYOUT_COMPACT = 2;
|
const LAYOUT_COMPACT = 2;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var Table
|
|
||||||
*/
|
|
||||||
private $table;
|
private $table;
|
||||||
|
|
||||||
public function __construct($triggerDeprecationError = true)
|
public function __construct($triggerDeprecationError = true)
|
||||||
|
@ -307,7 +307,7 @@ class InputDefinition
|
|||||||
/**
|
/**
|
||||||
* Gets an InputOption by shortcut.
|
* Gets an InputOption by shortcut.
|
||||||
*
|
*
|
||||||
* @param string $shortcut the Shortcut name
|
* @param string $shortcut The Shortcut name
|
||||||
*
|
*
|
||||||
* @return InputOption An InputOption object
|
* @return InputOption An InputOption object
|
||||||
*/
|
*/
|
||||||
|
@ -16,9 +16,6 @@ namespace Symfony\Component\Console\Output;
|
|||||||
*/
|
*/
|
||||||
class BufferedOutput extends Output
|
class BufferedOutput extends Output
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $buffer = '';
|
private $buffer = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -28,9 +28,6 @@ use Symfony\Component\Console\Formatter\OutputFormatterInterface;
|
|||||||
*/
|
*/
|
||||||
class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface
|
class ConsoleOutput extends StreamOutput implements ConsoleOutputInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var StreamOutput
|
|
||||||
*/
|
|
||||||
private $stderr;
|
private $stderr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,14 +21,7 @@ namespace Symfony\Component\CssSelector\Node;
|
|||||||
*/
|
*/
|
||||||
class ElementNode extends AbstractNode
|
class ElementNode extends AbstractNode
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string|null
|
|
||||||
*/
|
|
||||||
private $namespace;
|
private $namespace;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string|null
|
|
||||||
*/
|
|
||||||
private $element;
|
private $element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,19 +21,8 @@ namespace Symfony\Component\CssSelector\Parser;
|
|||||||
*/
|
*/
|
||||||
class Reader
|
class Reader
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $source;
|
private $source;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
private $length;
|
private $length;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
private $position = 0;
|
private $position = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -29,19 +29,8 @@ class Token
|
|||||||
const TYPE_NUMBER = 'number';
|
const TYPE_NUMBER = 'number';
|
||||||
const TYPE_STRING = 'string';
|
const TYPE_STRING = 'string';
|
||||||
|
|
||||||
/**
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
private $type;
|
private $type;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $value;
|
private $value;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
private $position;
|
private $position;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,64 +21,17 @@ namespace Symfony\Component\CssSelector\Parser\Tokenizer;
|
|||||||
*/
|
*/
|
||||||
class TokenizerPatterns
|
class TokenizerPatterns
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $unicodeEscapePattern;
|
private $unicodeEscapePattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $simpleEscapePattern;
|
private $simpleEscapePattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $newLineEscapePattern;
|
private $newLineEscapePattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $escapePattern;
|
private $escapePattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $stringEscapePattern;
|
private $stringEscapePattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $nonAsciiPattern;
|
private $nonAsciiPattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $nmCharPattern;
|
private $nmCharPattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $nmStartPattern;
|
private $nmStartPattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $identifierPattern;
|
private $identifierPattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $hashPattern;
|
private $hashPattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $numberPattern;
|
private $numberPattern;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $quotedStringPattern;
|
private $quotedStringPattern;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -29,9 +29,6 @@ class NodeExtension extends AbstractExtension
|
|||||||
const ATTRIBUTE_NAME_IN_LOWER_CASE = 2;
|
const ATTRIBUTE_NAME_IN_LOWER_CASE = 2;
|
||||||
const ATTRIBUTE_VALUE_IN_LOWER_CASE = 4;
|
const ATTRIBUTE_VALUE_IN_LOWER_CASE = 4;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
private $flags;
|
private $flags;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,19 +21,8 @@ namespace Symfony\Component\CssSelector\XPath;
|
|||||||
*/
|
*/
|
||||||
class XPathExpr
|
class XPathExpr
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $path;
|
private $path;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $element;
|
private $element;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $condition;
|
private $condition;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,9 +26,6 @@ class RepeatedPass implements CompilerPassInterface
|
|||||||
*/
|
*/
|
||||||
private $repeat = false;
|
private $repeat = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var RepeatablePassInterface[]
|
|
||||||
*/
|
|
||||||
private $passes;
|
private $passes;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -104,7 +104,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
* If you are not using the loaders and therefore don't want
|
* If you are not using the loaders and therefore don't want
|
||||||
* to depend on the Config component, set this flag to false.
|
* to depend on the Config component, set this flag to false.
|
||||||
*
|
*
|
||||||
* @param bool $track true if you want to track resources, false otherwise
|
* @param bool $track True if you want to track resources, false otherwise
|
||||||
*/
|
*/
|
||||||
public function setResourceTracking($track)
|
public function setResourceTracking($track)
|
||||||
{
|
{
|
||||||
@ -114,7 +114,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
|
|||||||
/**
|
/**
|
||||||
* Checks if resources are tracked.
|
* Checks if resources are tracked.
|
||||||
*
|
*
|
||||||
* @return bool true if resources are tracked, false otherwise
|
* @return bool true If resources are tracked, false otherwise
|
||||||
*/
|
*/
|
||||||
public function isTrackingResources()
|
public function isTrackingResources()
|
||||||
{
|
{
|
||||||
|
@ -38,15 +38,11 @@ class PhpDumper extends Dumper
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Characters that might appear in the generated variable name as first character.
|
* Characters that might appear in the generated variable name as first character.
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
*/
|
||||||
const FIRST_CHARS = 'abcdefghijklmnopqrstuvwxyz';
|
const FIRST_CHARS = 'abcdefghijklmnopqrstuvwxyz';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Characters that might appear in the generated variable name as any but the first character.
|
* Characters that might appear in the generated variable name as any but the first character.
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
*/
|
||||||
const NON_FIRST_CHARS = 'abcdefghijklmnopqrstuvwxyz0123456789_';
|
const NON_FIRST_CHARS = 'abcdefghijklmnopqrstuvwxyz0123456789_';
|
||||||
|
|
||||||
|
@ -25,11 +25,10 @@ interface InstantiatorInterface
|
|||||||
/**
|
/**
|
||||||
* Instantiates a proxy object.
|
* Instantiates a proxy object.
|
||||||
*
|
*
|
||||||
* @param ContainerInterface $container the container from which the service is being requested
|
* @param ContainerInterface $container The container from which the service is being requested
|
||||||
* @param Definition $definition the definition of the requested service
|
* @param Definition $definition The definition of the requested service
|
||||||
* @param string $id identifier of the requested service
|
* @param string $id Identifier of the requested service
|
||||||
* @param callable $realInstantiator zero-argument callback that is capable of producing the real
|
* @param callable $realInstantiator Zero-argument callback that is capable of producing the real service instance
|
||||||
* service instance
|
|
||||||
*
|
*
|
||||||
* @return object
|
* @return object
|
||||||
*/
|
*/
|
||||||
|
@ -31,7 +31,7 @@ interface DumperInterface
|
|||||||
* Generates the code to be used to instantiate a proxy in the dumped factory code.
|
* Generates the code to be used to instantiate a proxy in the dumped factory code.
|
||||||
*
|
*
|
||||||
* @param Definition $definition
|
* @param Definition $definition
|
||||||
* @param string $id service identifier
|
* @param string $id Service identifier
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
@ -20,9 +20,6 @@ use Symfony\Component\CssSelector\CssSelector;
|
|||||||
*/
|
*/
|
||||||
class Crawler extends \SplObjectStorage
|
class Crawler extends \SplObjectStorage
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string The current URI
|
|
||||||
*/
|
|
||||||
protected $uri;
|
protected $uri;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -42,13 +39,13 @@ class Crawler extends \SplObjectStorage
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mixed $node A Node to use as the base for the crawling
|
* @param mixed $node A Node to use as the base for the crawling
|
||||||
* @param string $currentUri The current URI
|
* @param string $uri The current URI
|
||||||
* @param string $baseHref The base href value
|
* @param string $baseHref The base href value
|
||||||
*/
|
*/
|
||||||
public function __construct($node = null, $currentUri = null, $baseHref = null)
|
public function __construct($node = null, $uri = null, $baseHref = null)
|
||||||
{
|
{
|
||||||
$this->uri = $currentUri;
|
$this->uri = $uri;
|
||||||
$this->baseHref = $baseHref ?: $currentUri;
|
$this->baseHref = $baseHref ?: $uri;
|
||||||
|
|
||||||
$this->add($node);
|
$this->add($node);
|
||||||
}
|
}
|
||||||
|
@ -19,19 +19,8 @@ use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
|||||||
*/
|
*/
|
||||||
class RegisterListenersPass implements CompilerPassInterface
|
class RegisterListenersPass implements CompilerPassInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $dispatcherService;
|
protected $dispatcherService;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $listenerTag;
|
protected $listenerTag;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $subscriberTag;
|
protected $subscriberTag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,7 +26,7 @@ interface EventDispatcherInterface
|
|||||||
* @param string $eventName The name of the event to dispatch. The name of
|
* @param string $eventName The name of the event to dispatch. The name of
|
||||||
* the event is the name of the method that is
|
* the event is the name of the method that is
|
||||||
* invoked on listeners.
|
* invoked on listeners.
|
||||||
* @param Event $event the event to pass to the event handlers/listeners
|
* @param Event $event The event to pass to the event handlers/listeners
|
||||||
* If not supplied, an empty Event instance is created
|
* If not supplied, an empty Event instance is created
|
||||||
*
|
*
|
||||||
* @return Event
|
* @return Event
|
||||||
|
@ -20,22 +20,13 @@ namespace Symfony\Component\EventDispatcher;
|
|||||||
*/
|
*/
|
||||||
class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate
|
class GenericEvent extends Event implements \ArrayAccess, \IteratorAggregate
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Event subject.
|
|
||||||
*
|
|
||||||
* @var mixed usually object or callable
|
|
||||||
*/
|
|
||||||
protected $subject;
|
protected $subject;
|
||||||
|
|
||||||
/**
|
|
||||||
* Array of arguments.
|
|
||||||
*/
|
|
||||||
protected $arguments;
|
protected $arguments;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encapsulate an event with $subject and $args.
|
* Encapsulate an event with $subject and $args.
|
||||||
*
|
*
|
||||||
* @param mixed $subject The subject of the event, usually an object
|
* @param mixed $subject The subject of the event, usually an object or a callable
|
||||||
* @param array $arguments Arguments to store in the event
|
* @param array $arguments Arguments to store in the event
|
||||||
*/
|
*/
|
||||||
public function __construct($subject = null, array $arguments = array())
|
public function __construct($subject = null, array $arguments = array())
|
||||||
|
@ -21,9 +21,6 @@ use Symfony\Component\ExpressionLanguage\ParserCache\ParserCacheInterface;
|
|||||||
*/
|
*/
|
||||||
class ExpressionLanguage
|
class ExpressionLanguage
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var ParserCacheInterface
|
|
||||||
*/
|
|
||||||
private $cache;
|
private $cache;
|
||||||
private $lexer;
|
private $lexer;
|
||||||
private $parser;
|
private $parser;
|
||||||
|
@ -56,7 +56,7 @@ class LockHandler
|
|||||||
/**
|
/**
|
||||||
* Lock the resource.
|
* Lock the resource.
|
||||||
*
|
*
|
||||||
* @param bool $blocking wait until the lock is released
|
* @param bool $blocking Wait until the lock is released
|
||||||
*
|
*
|
||||||
* @return bool Returns true if the lock was acquired, false otherwise
|
* @return bool Returns true if the lock was acquired, false otherwise
|
||||||
*
|
*
|
||||||
|
@ -66,7 +66,7 @@ class FilesystemTestCase extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $expectedFilePerms expected file permissions as three digits (i.e. 755)
|
* @param int $expectedFilePerms Expected file permissions as three digits (i.e. 755)
|
||||||
* @param string $filePath
|
* @param string $filePath
|
||||||
*/
|
*/
|
||||||
protected function assertFilePermissions($expectedFilePerms, $filePath)
|
protected function assertFilePermissions($expectedFilePerms, $filePath)
|
||||||
|
@ -26,9 +26,6 @@ use Symfony\Component\Finder\Comparator\DateComparator;
|
|||||||
*/
|
*/
|
||||||
abstract class AbstractFindAdapter extends AbstractAdapter
|
abstract class AbstractFindAdapter extends AbstractAdapter
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Shell
|
|
||||||
*/
|
|
||||||
protected $shell;
|
protected $shell;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -18,9 +18,6 @@ use Symfony\Component\Finder\Glob as FinderGlob;
|
|||||||
*/
|
*/
|
||||||
class Glob implements ValueInterface
|
class Glob implements ValueInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $pattern;
|
private $pattern;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -125,13 +125,13 @@ abstract class AbstractRendererEngine implements FormRendererEngineInterface
|
|||||||
*
|
*
|
||||||
* @see getResourceForBlockHierarchy()
|
* @see getResourceForBlockHierarchy()
|
||||||
*
|
*
|
||||||
* @param string $cacheKey the cache key used for storing the
|
* @param string $cacheKey The cache key used for storing the
|
||||||
* resource
|
* resource
|
||||||
* @param FormView $view the form view for finding the applying
|
* @param FormView $view The form view for finding the applying
|
||||||
* themes
|
* themes
|
||||||
* @param array $blockNameHierarchy the block hierarchy, with the most
|
* @param array $blockNameHierarchy The block hierarchy, with the most
|
||||||
* specific block name at the end
|
* specific block name at the end
|
||||||
* @param int $hierarchyLevel the level in the block hierarchy that
|
* @param int $hierarchyLevel The level in the block hierarchy that
|
||||||
* should be loaded
|
* should be loaded
|
||||||
*
|
*
|
||||||
* @return bool True if the resource could be loaded, false otherwise
|
* @return bool True if the resource could be loaded, false otherwise
|
||||||
|
@ -16,18 +16,7 @@ use Symfony\Component\Form\Exception\TransformationFailedException;
|
|||||||
|
|
||||||
class CallbackTransformer implements DataTransformerInterface
|
class CallbackTransformer implements DataTransformerInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The callback used for forward transform.
|
|
||||||
*
|
|
||||||
* @var callable
|
|
||||||
*/
|
|
||||||
private $transform;
|
private $transform;
|
||||||
|
|
||||||
/**
|
|
||||||
* The callback used for reverse transform.
|
|
||||||
*
|
|
||||||
* @var callable
|
|
||||||
*/
|
|
||||||
private $reverseTransform;
|
private $reverseTransform;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,11 +27,6 @@ use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface;
|
|||||||
*/
|
*/
|
||||||
class LazyChoiceList implements ChoiceListInterface
|
class LazyChoiceList implements ChoiceListInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The choice loader.
|
|
||||||
*
|
|
||||||
* @var ChoiceLoaderInterface
|
|
||||||
*/
|
|
||||||
private $loader;
|
private $loader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -56,8 +51,7 @@ class LazyChoiceList implements ChoiceListInterface
|
|||||||
* argument.
|
* argument.
|
||||||
*
|
*
|
||||||
* @param ChoiceLoaderInterface $loader The choice loader
|
* @param ChoiceLoaderInterface $loader The choice loader
|
||||||
* @param null|callable $value The callable generating the choice
|
* @param null|callable $value The callable generating the choice values
|
||||||
* values
|
|
||||||
*/
|
*/
|
||||||
public function __construct(ChoiceLoaderInterface $loader, $value = null)
|
public function __construct(ChoiceLoaderInterface $loader, $value = null)
|
||||||
{
|
{
|
||||||
|
@ -18,26 +18,14 @@ namespace Symfony\Component\Form\ChoiceList\View;
|
|||||||
*/
|
*/
|
||||||
class ChoiceGroupView implements \IteratorAggregate
|
class ChoiceGroupView implements \IteratorAggregate
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The label of the group.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
public $label;
|
public $label;
|
||||||
|
|
||||||
/**
|
|
||||||
* The choice views in the group.
|
|
||||||
*
|
|
||||||
* @var ChoiceGroupView[]|ChoiceView[]
|
|
||||||
*/
|
|
||||||
public $choices;
|
public $choices;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new choice group view.
|
* Creates a new choice group view.
|
||||||
*
|
*
|
||||||
* @param string $label The label of the group
|
* @param string $label The label of the group
|
||||||
* @param ChoiceGroupView[]|ChoiceView[] $choices the choice views in the
|
* @param ChoiceGroupView[]|ChoiceView[] $choices the choice views in the group
|
||||||
* group
|
|
||||||
*/
|
*/
|
||||||
public function __construct($label, array $choices = array())
|
public function __construct($label, array $choices = array())
|
||||||
{
|
{
|
||||||
|
@ -22,26 +22,14 @@ namespace Symfony\Component\Form\ChoiceList\View;
|
|||||||
*/
|
*/
|
||||||
class ChoiceListView
|
class ChoiceListView
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The choices.
|
|
||||||
*
|
|
||||||
* @var ChoiceGroupView[]|ChoiceView[]
|
|
||||||
*/
|
|
||||||
public $choices;
|
public $choices;
|
||||||
|
|
||||||
/**
|
|
||||||
* The preferred choices.
|
|
||||||
*
|
|
||||||
* @var ChoiceGroupView[]|ChoiceView[]
|
|
||||||
*/
|
|
||||||
public $preferredChoices;
|
public $preferredChoices;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new choice list view.
|
* Creates a new choice list view.
|
||||||
*
|
*
|
||||||
* @param ChoiceGroupView[]|ChoiceView[] $choices The choice views
|
* @param ChoiceGroupView[]|ChoiceView[] $choices The choice views
|
||||||
* @param ChoiceGroupView[]|ChoiceView[] $preferredChoices the preferred
|
* @param ChoiceGroupView[]|ChoiceView[] $preferredChoices the preferred choice views
|
||||||
* choice views
|
|
||||||
*/
|
*/
|
||||||
public function __construct(array $choices = array(), array $preferredChoices = array())
|
public function __construct(array $choices = array(), array $preferredChoices = array())
|
||||||
{
|
{
|
||||||
|
@ -21,25 +21,8 @@ namespace Symfony\Component\Form\Extension\Core\View;
|
|||||||
*/
|
*/
|
||||||
class ChoiceView
|
class ChoiceView
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The label displayed to humans.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
public $label;
|
public $label;
|
||||||
|
|
||||||
/**
|
|
||||||
* The view representation of the choice.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
public $value;
|
public $value;
|
||||||
|
|
||||||
/**
|
|
||||||
* The original choice value.
|
|
||||||
*
|
|
||||||
* @var mixed
|
|
||||||
*/
|
|
||||||
public $data;
|
public $data;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -74,7 +74,7 @@ class ChoiceList implements ChoiceListInterface
|
|||||||
* level of the hierarchy may also be a \Traversable.
|
* level of the hierarchy may also be a \Traversable.
|
||||||
* @param array $labels The array of labels. The structure of this array
|
* @param array $labels The array of labels. The structure of this array
|
||||||
* should match the structure of $choices.
|
* should match the structure of $choices.
|
||||||
* @param array $preferredChoices a flat array of choices that should be
|
* @param array $preferredChoices A flat array of choices that should be
|
||||||
* presented to the user with priority
|
* presented to the user with priority
|
||||||
*
|
*
|
||||||
* @throws UnexpectedTypeException if the choices are not an array or \Traversable
|
* @throws UnexpectedTypeException if the choices are not an array or \Traversable
|
||||||
@ -252,10 +252,8 @@ class ChoiceList implements ChoiceListInterface
|
|||||||
/**
|
/**
|
||||||
* Recursively adds the given choices to the list.
|
* Recursively adds the given choices to the list.
|
||||||
*
|
*
|
||||||
* @param array $bucketForPreferred the bucket where to store the preferred
|
* @param array $bucketForPreferred The bucket where to store the preferred view objects
|
||||||
* view objects
|
* @param array $bucketForRemaining The bucket where to store the non-preferred view objects
|
||||||
* @param array $bucketForRemaining the bucket where to store the
|
|
||||||
* non-preferred view objects
|
|
||||||
* @param array|\Traversable $choices The list of choices
|
* @param array|\Traversable $choices The list of choices
|
||||||
* @param array $labels The labels corresponding to the choices
|
* @param array $labels The labels corresponding to the choices
|
||||||
* @param array $preferredChoices The preferred choices
|
* @param array $preferredChoices The preferred choices
|
||||||
@ -299,10 +297,8 @@ class ChoiceList implements ChoiceListInterface
|
|||||||
* Recursively adds a choice group.
|
* Recursively adds a choice group.
|
||||||
*
|
*
|
||||||
* @param string $group The name of the group
|
* @param string $group The name of the group
|
||||||
* @param array $bucketForPreferred the bucket where to store the preferred
|
* @param array $bucketForPreferred The bucket where to store the preferred view objects
|
||||||
* view objects
|
* @param array $bucketForRemaining The bucket where to store the non-preferred view objects
|
||||||
* @param array $bucketForRemaining the bucket where to store the
|
|
||||||
* non-preferred view objects
|
|
||||||
* @param array $choices The list of choices in the group
|
* @param array $choices The list of choices in the group
|
||||||
* @param array $labels The labels corresponding to the choices in the group
|
* @param array $labels The labels corresponding to the choices in the group
|
||||||
* @param array $preferredChoices The preferred choices
|
* @param array $preferredChoices The preferred choices
|
||||||
@ -336,10 +332,8 @@ class ChoiceList implements ChoiceListInterface
|
|||||||
/**
|
/**
|
||||||
* Adds a new choice.
|
* Adds a new choice.
|
||||||
*
|
*
|
||||||
* @param array $bucketForPreferred the bucket where to store the preferred
|
* @param array $bucketForPreferred The bucket where to store the preferred view objects
|
||||||
* view objects
|
* @param array $bucketForRemaining The bucket where to store the non-preferred view objects
|
||||||
* @param array $bucketForRemaining the bucket where to store the
|
|
||||||
* non-preferred view objects
|
|
||||||
* @param mixed $choice The choice to add
|
* @param mixed $choice The choice to add
|
||||||
* @param string $label The label for the choice
|
* @param string $label The label for the choice
|
||||||
* @param array $preferredChoices The preferred choices
|
* @param array $preferredChoices The preferred choices
|
||||||
|
@ -80,7 +80,7 @@ class ObjectChoiceList extends ChoiceList
|
|||||||
* by calling the getter on the object. If the
|
* by calling the getter on the object. If the
|
||||||
* path is NULL, the object's __toString() method
|
* path is NULL, the object's __toString() method
|
||||||
* is used instead.
|
* is used instead.
|
||||||
* @param array $preferredChoices a flat array of choices that should be
|
* @param array $preferredChoices A flat array of choices that should be
|
||||||
* presented to the user with priority
|
* presented to the user with priority
|
||||||
* @param string $groupPath A property path pointing to the property used
|
* @param string $groupPath A property path pointing to the property used
|
||||||
* to group the choices. Only allowed if
|
* to group the choices. Only allowed if
|
||||||
|
@ -44,7 +44,7 @@ class SimpleChoiceList extends ChoiceList
|
|||||||
* as hierarchy of unlimited depth by creating nested
|
* as hierarchy of unlimited depth by creating nested
|
||||||
* arrays. The title of the sub-hierarchy is stored
|
* arrays. The title of the sub-hierarchy is stored
|
||||||
* in the array key pointing to the nested array.
|
* in the array key pointing to the nested array.
|
||||||
* @param array $preferredChoices a flat array of choices that should be
|
* @param array $preferredChoices A flat array of choices that should be
|
||||||
* presented to the user with priority
|
* presented to the user with priority
|
||||||
*/
|
*/
|
||||||
public function __construct(array $choices, array $preferredChoices = array())
|
public function __construct(array $choices, array $preferredChoices = array())
|
||||||
@ -83,10 +83,8 @@ class SimpleChoiceList extends ChoiceList
|
|||||||
* Takes care of splitting the single $choices array passed in the
|
* Takes care of splitting the single $choices array passed in the
|
||||||
* constructor into choices and labels.
|
* constructor into choices and labels.
|
||||||
*
|
*
|
||||||
* @param array $bucketForPreferred the bucket where to store the preferred
|
* @param array $bucketForPreferred The bucket where to store the preferred view objects
|
||||||
* view objects
|
* @param array $bucketForRemaining The bucket where to store the non-preferred view objects
|
||||||
* @param array $bucketForRemaining the bucket where to store the
|
|
||||||
* non-preferred view objects
|
|
||||||
* @param array|\Traversable $choices The list of choices
|
* @param array|\Traversable $choices The list of choices
|
||||||
* @param array $labels Ignored
|
* @param array $labels Ignored
|
||||||
* @param array $preferredChoices The preferred choices
|
* @param array $preferredChoices The preferred choices
|
||||||
|
@ -26,14 +26,7 @@ use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
|
|||||||
*/
|
*/
|
||||||
class CoreExtension extends AbstractExtension
|
class CoreExtension extends AbstractExtension
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var PropertyAccessorInterface
|
|
||||||
*/
|
|
||||||
private $propertyAccessor;
|
private $propertyAccessor;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var ChoiceListFactoryInterface
|
|
||||||
*/
|
|
||||||
private $choiceListFactory;
|
private $choiceListFactory;
|
||||||
|
|
||||||
public function __construct(PropertyAccessorInterface $propertyAccessor = null, ChoiceListFactoryInterface $choiceListFactory = null)
|
public function __construct(PropertyAccessorInterface $propertyAccessor = null, ChoiceListFactoryInterface $choiceListFactory = null)
|
||||||
|
@ -22,17 +22,10 @@ use Symfony\Component\Form\Exception\TransformationFailedException;
|
|||||||
*/
|
*/
|
||||||
class BooleanToStringTransformer implements DataTransformerInterface
|
class BooleanToStringTransformer implements DataTransformerInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The value emitted upon transform if the input is true.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $trueValue;
|
private $trueValue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the value emitted upon transform if the input is true.
|
* @param string $trueValue The value emitted upon transform if the input is true
|
||||||
*
|
|
||||||
* @param string $trueValue
|
|
||||||
*/
|
*/
|
||||||
public function __construct($trueValue)
|
public function __construct($trueValue)
|
||||||
{
|
{
|
||||||
|
@ -47,8 +47,7 @@ class ChoiceToBooleanArrayTransformer implements DataTransformerInterface
|
|||||||
* depending on whether a given option is selected. If this field is rendered
|
* depending on whether a given option is selected. If this field is rendered
|
||||||
* as select tag, the value is not modified.
|
* as select tag, the value is not modified.
|
||||||
*
|
*
|
||||||
* @param mixed $choice an array if "multiple" is set to true, a scalar
|
* @param mixed $choice An array if "multiple" is set to true, a scalar value otherwise
|
||||||
* value otherwise
|
|
||||||
*
|
*
|
||||||
* @return mixed An array
|
* @return mixed An array
|
||||||
*
|
*
|
||||||
@ -87,10 +86,8 @@ class ChoiceToBooleanArrayTransformer implements DataTransformerInterface
|
|||||||
*
|
*
|
||||||
* @return mixed A scalar value
|
* @return mixed A scalar value
|
||||||
*
|
*
|
||||||
* @throws TransformationFailedException if the given value is not an array,
|
* @throws TransformationFailedException if the given value is not an array, if the recuperation
|
||||||
* if the recuperation of the choices
|
* of the choices fails, or if some choice can't be found
|
||||||
* fails or if some choice can't be
|
|
||||||
* found
|
|
||||||
*/
|
*/
|
||||||
public function reverseTransform($values)
|
public function reverseTransform($values)
|
||||||
{
|
{
|
||||||
|
@ -150,7 +150,7 @@ class DateTimeToLocalizedStringTransformer extends BaseDateTimeTransformer
|
|||||||
/**
|
/**
|
||||||
* Returns a preconfigured IntlDateFormatter instance.
|
* Returns a preconfigured IntlDateFormatter instance.
|
||||||
*
|
*
|
||||||
* @param bool $ignoreTimezone use UTC regardless of the configured timezone
|
* @param bool $ignoreTimezone Use UTC regardless of the configured timezone
|
||||||
*
|
*
|
||||||
* @return \IntlDateFormatter
|
* @return \IntlDateFormatter
|
||||||
*
|
*
|
||||||
|
@ -32,7 +32,6 @@ class PercentToLocalizedStringTransformer implements DataTransformerInterface
|
|||||||
);
|
);
|
||||||
|
|
||||||
private $type;
|
private $type;
|
||||||
|
|
||||||
private $scale;
|
private $scale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,27 +21,12 @@ use Symfony\Component\Form\Exception\UnexpectedTypeException;
|
|||||||
*/
|
*/
|
||||||
class MergeCollectionListener implements EventSubscriberInterface
|
class MergeCollectionListener implements EventSubscriberInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Whether elements may be added to the collection.
|
|
||||||
*
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
private $allowAdd;
|
private $allowAdd;
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether elements may be removed from the collection.
|
|
||||||
*
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
private $allowDelete;
|
private $allowDelete;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new listener.
|
* @param bool $allowAdd Whether values might be added to the collection
|
||||||
*
|
* @param bool $allowDelete Whether values might be removed from the collection
|
||||||
* @param bool $allowAdd whether values might be added to the
|
|
||||||
* collection
|
|
||||||
* @param bool $allowDelete whether values might be removed from the
|
|
||||||
* collection
|
|
||||||
*/
|
*/
|
||||||
public function __construct($allowAdd = false, $allowDelete = false)
|
public function __construct($allowAdd = false, $allowDelete = false)
|
||||||
{
|
{
|
||||||
|
@ -34,8 +34,8 @@ class ResizeFormListener implements EventSubscriberInterface
|
|||||||
/**
|
/**
|
||||||
* @param string $type
|
* @param string $type
|
||||||
* @param array $options
|
* @param array $options
|
||||||
* @param bool $allowAdd whether children could be added to the group
|
* @param bool $allowAdd Whether children could be added to the group
|
||||||
* @param bool $allowDelete whether children could be removed from the group
|
* @param bool $allowDelete Whether children could be removed from the group
|
||||||
* @param bool $deleteEmpty
|
* @param bool $deleteEmpty
|
||||||
*/
|
*/
|
||||||
public function __construct($type, array $options = array(), $allowAdd = false, $allowDelete = false, $deleteEmpty = false)
|
public function __construct($type, array $options = array(), $allowAdd = false, $allowDelete = false, $deleteEmpty = false)
|
||||||
|
@ -44,11 +44,6 @@ class ChoiceType extends AbstractType
|
|||||||
*/
|
*/
|
||||||
const DEPRECATED_EMPTY_VALUE = '__deprecated_empty_value__';
|
const DEPRECATED_EMPTY_VALUE = '__deprecated_empty_value__';
|
||||||
|
|
||||||
/**
|
|
||||||
* Caches created choice lists.
|
|
||||||
*
|
|
||||||
* @var ChoiceListFactoryInterface
|
|
||||||
*/
|
|
||||||
private $choiceListFactory;
|
private $choiceListFactory;
|
||||||
|
|
||||||
public function __construct(ChoiceListFactoryInterface $choiceListFactory = null)
|
public function __construct(ChoiceListFactoryInterface $choiceListFactory = null)
|
||||||
|
@ -30,7 +30,6 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
|||||||
class DateTimeType extends AbstractType
|
class DateTimeType extends AbstractType
|
||||||
{
|
{
|
||||||
const DEFAULT_DATE_FORMAT = \IntlDateFormatter::MEDIUM;
|
const DEFAULT_DATE_FORMAT = \IntlDateFormatter::MEDIUM;
|
||||||
|
|
||||||
const DEFAULT_TIME_FORMAT = \IntlDateFormatter::MEDIUM;
|
const DEFAULT_TIME_FORMAT = \IntlDateFormatter::MEDIUM;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,7 +27,6 @@ use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
|
|||||||
class DateType extends AbstractType
|
class DateType extends AbstractType
|
||||||
{
|
{
|
||||||
const DEFAULT_FORMAT = \IntlDateFormatter::MEDIUM;
|
const DEFAULT_FORMAT = \IntlDateFormatter::MEDIUM;
|
||||||
|
|
||||||
const HTML5_FORMAT = 'yyyy-MM-dd';
|
const HTML5_FORMAT = 'yyyy-MM-dd';
|
||||||
|
|
||||||
private static $acceptedFormats = array(
|
private static $acceptedFormats = array(
|
||||||
|
@ -24,9 +24,6 @@ use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
|
|||||||
|
|
||||||
class FormType extends BaseType
|
class FormType extends BaseType
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var PropertyAccessorInterface
|
|
||||||
*/
|
|
||||||
private $propertyAccessor;
|
private $propertyAccessor;
|
||||||
|
|
||||||
public function __construct(PropertyAccessorInterface $propertyAccessor = null)
|
public function __construct(PropertyAccessorInterface $propertyAccessor = null)
|
||||||
|
@ -25,19 +25,8 @@ use Symfony\Component\Translation\TranslatorInterface;
|
|||||||
*/
|
*/
|
||||||
class CsrfExtension extends AbstractExtension
|
class CsrfExtension extends AbstractExtension
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var CsrfTokenManagerInterface
|
|
||||||
*/
|
|
||||||
private $tokenManager;
|
private $tokenManager;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var TranslatorInterface
|
|
||||||
*/
|
|
||||||
private $translator;
|
private $translator;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var null|string
|
|
||||||
*/
|
|
||||||
private $translationDomain;
|
private $translationDomain;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -27,9 +27,6 @@ use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
|
|||||||
*/
|
*/
|
||||||
class CsrfProviderAdapter implements CsrfTokenManagerInterface
|
class CsrfProviderAdapter implements CsrfTokenManagerInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var CsrfProviderInterface
|
|
||||||
*/
|
|
||||||
private $csrfProvider;
|
private $csrfProvider;
|
||||||
|
|
||||||
public function __construct(CsrfProviderInterface $csrfProvider)
|
public function __construct(CsrfProviderInterface $csrfProvider)
|
||||||
|
@ -23,9 +23,6 @@ use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
|
|||||||
*/
|
*/
|
||||||
class CsrfTokenManagerAdapter implements CsrfProviderInterface
|
class CsrfTokenManagerAdapter implements CsrfProviderInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var CsrfTokenManagerInterface
|
|
||||||
*/
|
|
||||||
private $tokenManager;
|
private $tokenManager;
|
||||||
|
|
||||||
public function __construct(CsrfTokenManagerInterface $tokenManager)
|
public function __construct(CsrfTokenManagerInterface $tokenManager)
|
||||||
|
@ -30,11 +30,6 @@ use Symfony\Component\Security\Core\Util\StringUtils;
|
|||||||
*/
|
*/
|
||||||
class DefaultCsrfProvider implements CsrfProviderInterface
|
class DefaultCsrfProvider implements CsrfProviderInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* A secret value used for generating the CSRF token.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
protected $secret;
|
protected $secret;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,11 +30,6 @@ use Symfony\Component\HttpFoundation\Session\Session;
|
|||||||
*/
|
*/
|
||||||
class SessionCsrfProvider extends DefaultCsrfProvider
|
class SessionCsrfProvider extends DefaultCsrfProvider
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The user session from which the session ID is returned.
|
|
||||||
*
|
|
||||||
* @var Session
|
|
||||||
*/
|
|
||||||
protected $session;
|
protected $session;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -43,7 +38,7 @@ class SessionCsrfProvider extends DefaultCsrfProvider
|
|||||||
* A recommended value for the secret is a generated value with at least
|
* A recommended value for the secret is a generated value with at least
|
||||||
* 32 characters and mixed letters, digits and special characters.
|
* 32 characters and mixed letters, digits and special characters.
|
||||||
*
|
*
|
||||||
* @param Session $session The user session
|
* @param Session $session The user session from which the session ID is returned
|
||||||
* @param string $secret A secret value included in the CSRF token
|
* @param string $secret A secret value included in the CSRF token
|
||||||
*/
|
*/
|
||||||
public function __construct(Session $session, $secret)
|
public function __construct(Session $session, $secret)
|
||||||
|
@ -28,50 +28,12 @@ use Symfony\Component\Translation\TranslatorInterface;
|
|||||||
*/
|
*/
|
||||||
class CsrfValidationListener implements EventSubscriberInterface
|
class CsrfValidationListener implements EventSubscriberInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The name of the CSRF field.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $fieldName;
|
private $fieldName;
|
||||||
|
|
||||||
/**
|
|
||||||
* The generator for CSRF tokens.
|
|
||||||
*
|
|
||||||
* @var CsrfTokenManagerInterface
|
|
||||||
*/
|
|
||||||
private $tokenManager;
|
private $tokenManager;
|
||||||
|
|
||||||
/**
|
|
||||||
* A text mentioning the tokenId of the CSRF token.
|
|
||||||
*
|
|
||||||
* Validation of the token will only succeed if it was generated in the
|
|
||||||
* same session and with the same tokenId.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $tokenId;
|
private $tokenId;
|
||||||
|
|
||||||
/**
|
|
||||||
* The message displayed in case of an error.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $errorMessage;
|
private $errorMessage;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var TranslatorInterface
|
|
||||||
*/
|
|
||||||
private $translator;
|
private $translator;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var null|string
|
|
||||||
*/
|
|
||||||
private $translationDomain;
|
private $translationDomain;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var ServerParams
|
|
||||||
*/
|
|
||||||
private $serverParams;
|
private $serverParams;
|
||||||
|
|
||||||
public static function getSubscribedEvents()
|
public static function getSubscribedEvents()
|
||||||
@ -81,6 +43,17 @@ class CsrfValidationListener implements EventSubscriberInterface
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $fieldName The name of the CSRF field
|
||||||
|
* @param CsrfTokenManagerInterface $tokenManager The generator for CSRF tokens
|
||||||
|
* @param string $tokenId A text mentioning the tokenId of the CSRF token
|
||||||
|
* Validation of the token will only succeed if it was generated in the
|
||||||
|
* same session and with the same tokenId
|
||||||
|
* @param string $errorMessage The message displayed in case of an error
|
||||||
|
* @param TranslatorInterface $translator
|
||||||
|
* @param null|string $translationDomain
|
||||||
|
* @param ServerParams $serverParams
|
||||||
|
*/
|
||||||
public function __construct($fieldName, $tokenManager, $tokenId, $errorMessage, TranslatorInterface $translator = null, $translationDomain = null, ServerParams $serverParams = null)
|
public function __construct($fieldName, $tokenManager, $tokenId, $errorMessage, TranslatorInterface $translator = null, $translationDomain = null, ServerParams $serverParams = null)
|
||||||
{
|
{
|
||||||
if ($tokenManager instanceof CsrfProviderInterface) {
|
if ($tokenManager instanceof CsrfProviderInterface) {
|
||||||
|
@ -36,31 +36,20 @@ class FormTypeCsrfExtension extends AbstractTypeExtension
|
|||||||
*/
|
*/
|
||||||
private $defaultTokenManager;
|
private $defaultTokenManager;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
private $defaultEnabled;
|
private $defaultEnabled;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $defaultFieldName;
|
private $defaultFieldName;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var TranslatorInterface
|
|
||||||
*/
|
|
||||||
private $translator;
|
private $translator;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var null|string
|
|
||||||
*/
|
|
||||||
private $translationDomain;
|
private $translationDomain;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var ServerParams
|
|
||||||
*/
|
|
||||||
private $serverParams;
|
private $serverParams;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param CsrfTokenManagerInterface|CsrfProviderInterface $defaultTokenManager
|
||||||
|
* @param bool $defaultEnabled
|
||||||
|
* @param string $defaultFieldName
|
||||||
|
* @param TranslatorInterface $translator
|
||||||
|
* @param null|string $translationDomain
|
||||||
|
* @param ServerParams $serverParams
|
||||||
|
*/
|
||||||
public function __construct($defaultTokenManager, $defaultEnabled = true, $defaultFieldName = '_token', TranslatorInterface $translator = null, $translationDomain = null, ServerParams $serverParams = null)
|
public function __construct($defaultTokenManager, $defaultEnabled = true, $defaultFieldName = '_token', TranslatorInterface $translator = null, $translationDomain = null, ServerParams $serverParams = null)
|
||||||
{
|
{
|
||||||
if ($defaultTokenManager instanceof CsrfProviderInterface) {
|
if ($defaultTokenManager instanceof CsrfProviderInterface) {
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Form\Extension\DataCollector;
|
namespace Symfony\Component\Form\Extension\DataCollector;
|
||||||
|
|
||||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
|
||||||
use Symfony\Component\Form\AbstractExtension;
|
use Symfony\Component\Form\AbstractExtension;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -22,9 +21,6 @@ use Symfony\Component\Form\AbstractExtension;
|
|||||||
*/
|
*/
|
||||||
class DataCollectorExtension extends AbstractExtension
|
class DataCollectorExtension extends AbstractExtension
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var EventSubscriberInterface
|
|
||||||
*/
|
|
||||||
private $dataCollector;
|
private $dataCollector;
|
||||||
|
|
||||||
public function __construct(FormDataCollectorInterface $dataCollector)
|
public function __construct(FormDataCollectorInterface $dataCollector)
|
||||||
|
@ -24,9 +24,6 @@ use Symfony\Component\Form\FormEvents;
|
|||||||
*/
|
*/
|
||||||
class DataCollectorListener implements EventSubscriberInterface
|
class DataCollectorListener implements EventSubscriberInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var FormDataCollectorInterface
|
|
||||||
*/
|
|
||||||
private $dataCollector;
|
private $dataCollector;
|
||||||
|
|
||||||
public function __construct(FormDataCollectorInterface $dataCollector)
|
public function __construct(FormDataCollectorInterface $dataCollector)
|
||||||
|
@ -25,14 +25,7 @@ use Symfony\Component\Form\ResolvedFormTypeInterface;
|
|||||||
*/
|
*/
|
||||||
class ResolvedTypeDataCollectorProxy implements ResolvedFormTypeInterface
|
class ResolvedTypeDataCollectorProxy implements ResolvedFormTypeInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var ResolvedFormTypeInterface
|
|
||||||
*/
|
|
||||||
private $proxiedType;
|
private $proxiedType;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var FormDataCollectorInterface
|
|
||||||
*/
|
|
||||||
private $dataCollector;
|
private $dataCollector;
|
||||||
|
|
||||||
public function __construct(ResolvedFormTypeInterface $proxiedType, FormDataCollectorInterface $dataCollector)
|
public function __construct(ResolvedFormTypeInterface $proxiedType, FormDataCollectorInterface $dataCollector)
|
||||||
|
@ -24,14 +24,7 @@ use Symfony\Component\Form\ResolvedFormTypeInterface;
|
|||||||
*/
|
*/
|
||||||
class ResolvedTypeFactoryDataCollectorProxy implements ResolvedFormTypeFactoryInterface
|
class ResolvedTypeFactoryDataCollectorProxy implements ResolvedFormTypeFactoryInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var ResolvedFormTypeFactoryInterface
|
|
||||||
*/
|
|
||||||
private $proxiedFactory;
|
private $proxiedFactory;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var FormDataCollectorInterface
|
|
||||||
*/
|
|
||||||
private $dataCollector;
|
private $dataCollector;
|
||||||
|
|
||||||
public function __construct(ResolvedFormTypeFactoryInterface $proxiedFactory, FormDataCollectorInterface $dataCollector)
|
public function __construct(ResolvedFormTypeFactoryInterface $proxiedFactory, FormDataCollectorInterface $dataCollector)
|
||||||
|
@ -25,7 +25,7 @@ use Symfony\Component\Form\FormBuilderInterface;
|
|||||||
class DataCollectorTypeExtension extends AbstractTypeExtension
|
class DataCollectorTypeExtension extends AbstractTypeExtension
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var \Symfony\Component\EventDispatcher\EventSubscriberInterface
|
* @var DataCollectorListener
|
||||||
*/
|
*/
|
||||||
private $listener;
|
private $listener;
|
||||||
|
|
||||||
|
@ -26,9 +26,6 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
*/
|
*/
|
||||||
class HttpFoundationRequestHandler implements RequestHandlerInterface
|
class HttpFoundationRequestHandler implements RequestHandlerInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var ServerParams
|
|
||||||
*/
|
|
||||||
private $serverParams;
|
private $serverParams;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -20,9 +20,6 @@ use Symfony\Component\Templating\EngineInterface;
|
|||||||
*/
|
*/
|
||||||
class TemplatingRendererEngine extends AbstractRendererEngine
|
class TemplatingRendererEngine extends AbstractRendererEngine
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var EngineInterface
|
|
||||||
*/
|
|
||||||
private $engine;
|
private $engine;
|
||||||
|
|
||||||
public function __construct(EngineInterface $engine, array $defaultThemes = array())
|
public function __construct(EngineInterface $engine, array $defaultThemes = array())
|
||||||
|
@ -24,14 +24,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
|
|||||||
*/
|
*/
|
||||||
class FormTypeValidatorExtension extends BaseValidatorExtension
|
class FormTypeValidatorExtension extends BaseValidatorExtension
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var ValidatorInterface
|
|
||||||
*/
|
|
||||||
private $validator;
|
private $validator;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var ViolationMapper
|
|
||||||
*/
|
|
||||||
private $violationMapper;
|
private $violationMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -250,7 +250,7 @@ class ValidatorTypeGuesser implements FormTypeGuesserInterface
|
|||||||
* @param string $property The property for which to find constraints
|
* @param string $property The property for which to find constraints
|
||||||
* @param \Closure $closure The closure that returns a guess
|
* @param \Closure $closure The closure that returns a guess
|
||||||
* for a given constraint
|
* for a given constraint
|
||||||
* @param mixed $defaultValue the default value assumed if no other value
|
* @param mixed $defaultValue The default value assumed if no other value
|
||||||
* can be guessed
|
* can be guessed
|
||||||
*
|
*
|
||||||
* @return Guess|null The guessed value with the highest confidence
|
* @return Guess|null The guessed value with the highest confidence
|
||||||
|
@ -19,21 +19,15 @@ use Symfony\Component\Form\Exception\ErrorMappingException;
|
|||||||
*/
|
*/
|
||||||
class MappingRule
|
class MappingRule
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var FormInterface
|
|
||||||
*/
|
|
||||||
private $origin;
|
private $origin;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $propertyPath;
|
private $propertyPath;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $targetPath;
|
private $targetPath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param FormInterface $origin
|
||||||
|
* @param string $propertyPath
|
||||||
|
* @param string $targetPath
|
||||||
|
*/
|
||||||
public function __construct(FormInterface $origin, $propertyPath, $targetPath)
|
public function __construct(FormInterface $origin, $propertyPath, $targetPath)
|
||||||
{
|
{
|
||||||
$this->origin = $origin;
|
$this->origin = $origin;
|
||||||
|
@ -19,9 +19,6 @@ use Symfony\Component\PropertyAccess\PropertyPath;
|
|||||||
*/
|
*/
|
||||||
class RelativePath extends PropertyPath
|
class RelativePath extends PropertyPath
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var FormInterface
|
|
||||||
*/
|
|
||||||
private $root;
|
private $root;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,10 +24,8 @@ interface ViolationMapperInterface
|
|||||||
* the given form.
|
* the given form.
|
||||||
*
|
*
|
||||||
* @param ConstraintViolation $violation The violation to map
|
* @param ConstraintViolation $violation The violation to map
|
||||||
* @param FormInterface $form the root form of the tree
|
* @param FormInterface $form The root form of the tree to map it to
|
||||||
* to map it to
|
* @param bool $allowNonSynchronized Whether to allow mapping to non-synchronized forms
|
||||||
* @param bool $allowNonSynchronized whether to allow
|
|
||||||
* mapping to non-synchronized forms
|
|
||||||
*/
|
*/
|
||||||
public function mapViolation(ConstraintViolation $violation, FormInterface $form, $allowNonSynchronized = false);
|
public function mapViolation(ConstraintViolation $violation, FormInterface $form, $allowNonSynchronized = false);
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,7 @@ class ViolationPath implements \IteratorAggregate, PropertyPathInterface
|
|||||||
/**
|
/**
|
||||||
* Creates a new violation path from a string.
|
* Creates a new violation path from a string.
|
||||||
*
|
*
|
||||||
* @param string $violationPath the property path of a {@link \Symfony\Component\Validator\ConstraintViolation}
|
* @param string $violationPath The property path of a {@link \Symfony\Component\Validator\ConstraintViolation} object
|
||||||
* object
|
|
||||||
*/
|
*/
|
||||||
public function __construct($violationPath)
|
public function __construct($violationPath)
|
||||||
{
|
{
|
||||||
|
@ -48,7 +48,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
* view to the normalized format.
|
* view to the normalized format.
|
||||||
*
|
*
|
||||||
* @param DataTransformerInterface $viewTransformer
|
* @param DataTransformerInterface $viewTransformer
|
||||||
* @param bool $forcePrepend if set to true, prepend instead of appending
|
* @param bool $forcePrepend If set to true, prepend instead of appending
|
||||||
*
|
*
|
||||||
* @return $this The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
@ -70,7 +70,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
* normalized to the model format.
|
* normalized to the model format.
|
||||||
*
|
*
|
||||||
* @param DataTransformerInterface $modelTransformer
|
* @param DataTransformerInterface $modelTransformer
|
||||||
* @param bool $forceAppend if set to true, append instead of prepending
|
* @param bool $forceAppend If set to true, append instead of prepending
|
||||||
*
|
*
|
||||||
* @return $this The configuration object
|
* @return $this The configuration object
|
||||||
*/
|
*/
|
||||||
@ -146,7 +146,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
/**
|
/**
|
||||||
* Sets the property path that the form should be mapped to.
|
* Sets the property path that the form should be mapped to.
|
||||||
*
|
*
|
||||||
* @param null|string|PropertyPathInterface $propertyPath the property path or null if the path should be set
|
* @param null|string|PropertyPathInterface $propertyPath The property path or null if the path should be set
|
||||||
* automatically based on the form's name
|
* automatically based on the form's name
|
||||||
*
|
*
|
||||||
* @return $this The configuration object
|
* @return $this The configuration object
|
||||||
@ -166,7 +166,7 @@ interface FormConfigBuilderInterface extends FormConfigInterface
|
|||||||
/**
|
/**
|
||||||
* Sets whether the form's data should be modified by reference.
|
* Sets whether the form's data should be modified by reference.
|
||||||
*
|
*
|
||||||
* @param bool $byReference whether the data should be
|
* @param bool $byReference Whether the data should be
|
||||||
* modified by reference
|
* modified by reference
|
||||||
*
|
*
|
||||||
* @return $this The configuration object
|
* @return $this The configuration object
|
||||||
|
@ -32,26 +32,17 @@ class FormErrorIterator implements \RecursiveIterator, \SeekableIterator, \Array
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The prefix used for indenting nested error messages.
|
* The prefix used for indenting nested error messages.
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
*/
|
||||||
const INDENTATION = ' ';
|
const INDENTATION = ' ';
|
||||||
|
|
||||||
/**
|
|
||||||
* @var FormInterface
|
|
||||||
*/
|
|
||||||
private $form;
|
private $form;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var FormError[]|FormErrorIterator[]
|
|
||||||
*/
|
|
||||||
private $errors;
|
private $errors;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new iterator.
|
* Creates a new iterator.
|
||||||
*
|
*
|
||||||
* @param FormInterface $form The erroneous form
|
* @param FormInterface $form The erroneous form
|
||||||
* @param array $errors The form errors
|
* @param FormError[]|FormErrorIterator[] $errors The form errors
|
||||||
*
|
*
|
||||||
* @throws InvalidArgumentException If the errors are invalid
|
* @throws InvalidArgumentException If the errors are invalid
|
||||||
*/
|
*/
|
||||||
|
@ -15,14 +15,7 @@ use Symfony\Component\Form\Exception\UnexpectedTypeException;
|
|||||||
|
|
||||||
class FormFactory implements FormFactoryInterface
|
class FormFactory implements FormFactoryInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var FormRegistryInterface
|
|
||||||
*/
|
|
||||||
private $registry;
|
private $registry;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var ResolvedFormTypeFactoryInterface
|
|
||||||
*/
|
|
||||||
private $resolvedTypeFactory;
|
private $resolvedTypeFactory;
|
||||||
|
|
||||||
public function __construct(FormRegistryInterface $registry, ResolvedFormTypeFactoryInterface $resolvedTypeFactory)
|
public function __construct(FormRegistryInterface $registry, ResolvedFormTypeFactoryInterface $resolvedTypeFactory)
|
||||||
|
@ -268,7 +268,7 @@ interface FormInterface extends \ArrayAccess, \Traversable, \Countable
|
|||||||
* Submits data to the form, transforms and validates it.
|
* Submits data to the form, transforms and validates it.
|
||||||
*
|
*
|
||||||
* @param mixed $submittedData The submitted data
|
* @param mixed $submittedData The submitted data
|
||||||
* @param bool $clearMissing whether to set fields to NULL when they
|
* @param bool $clearMissing Whether to set fields to NULL when they
|
||||||
* are missing in the submitted data
|
* are missing in the submitted data
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
|
@ -40,7 +40,7 @@ interface FormRendererEngineInterface
|
|||||||
* First the themes attached directly to the
|
* First the themes attached directly to the
|
||||||
* view with {@link setTheme()} are considered,
|
* view with {@link setTheme()} are considered,
|
||||||
* then the ones of its parent etc.
|
* then the ones of its parent etc.
|
||||||
* @param string $blockName the name of the block to render
|
* @param string $blockName The name of the block to render
|
||||||
*
|
*
|
||||||
* @return mixed the renderer resource or false, if none was found
|
* @return mixed the renderer resource or false, if none was found
|
||||||
*/
|
*/
|
||||||
@ -74,7 +74,7 @@ interface FormRendererEngineInterface
|
|||||||
* First the themes attached directly to
|
* First the themes attached directly to
|
||||||
* the view with {@link setTheme()} are
|
* the view with {@link setTheme()} are
|
||||||
* considered, then the ones of its parent etc.
|
* considered, then the ones of its parent etc.
|
||||||
* @param array $blockNameHierarchy the block name hierarchy, with the root block
|
* @param array $blockNameHierarchy The block name hierarchy, with the root block
|
||||||
* at the beginning
|
* at the beginning
|
||||||
* @param int $hierarchyLevel The level in the hierarchy at which to start
|
* @param int $hierarchyLevel The level in the hierarchy at which to start
|
||||||
* looking. Level 0 indicates the root block, i.e.
|
* looking. Level 0 indicates the root block, i.e.
|
||||||
@ -114,7 +114,7 @@ interface FormRendererEngineInterface
|
|||||||
* First the themes attached directly to
|
* First the themes attached directly to
|
||||||
* the view with {@link setTheme()} are
|
* the view with {@link setTheme()} are
|
||||||
* considered, then the ones of its parent etc.
|
* considered, then the ones of its parent etc.
|
||||||
* @param array $blockNameHierarchy the block name hierarchy, with the root block
|
* @param array $blockNameHierarchy The block name hierarchy, with the root block
|
||||||
* at the beginning
|
* at the beginning
|
||||||
* @param int $hierarchyLevel The level in the hierarchy at which to start
|
* @param int $hierarchyLevel The level in the hierarchy at which to start
|
||||||
* looking. Level 0 indicates the root block, i.e.
|
* looking. Level 0 indicates the root block, i.e.
|
||||||
|
@ -26,29 +26,21 @@ abstract class Guess
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Marks an instance with a value that is extremely likely to be correct.
|
* Marks an instance with a value that is extremely likely to be correct.
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
*/
|
*/
|
||||||
const VERY_HIGH_CONFIDENCE = 3;
|
const VERY_HIGH_CONFIDENCE = 3;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marks an instance with a value that is very likely to be correct.
|
* Marks an instance with a value that is very likely to be correct.
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
*/
|
*/
|
||||||
const HIGH_CONFIDENCE = 2;
|
const HIGH_CONFIDENCE = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marks an instance with a value that is likely to be correct.
|
* Marks an instance with a value that is likely to be correct.
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
*/
|
*/
|
||||||
const MEDIUM_CONFIDENCE = 1;
|
const MEDIUM_CONFIDENCE = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Marks an instance with a value that may be correct.
|
* Marks an instance with a value that may be correct.
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
*/
|
*/
|
||||||
const LOW_CONFIDENCE = 0;
|
const LOW_CONFIDENCE = 0;
|
||||||
|
|
||||||
|
@ -20,19 +20,8 @@ use Symfony\Component\Form\Exception\InvalidArgumentException;
|
|||||||
*/
|
*/
|
||||||
class PreloadedExtension implements FormExtensionInterface
|
class PreloadedExtension implements FormExtensionInterface
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var FormTypeInterface[]
|
|
||||||
*/
|
|
||||||
private $types = array();
|
private $types = array();
|
||||||
|
|
||||||
/**
|
|
||||||
* @var array[FormTypeExtensionInterface[]]
|
|
||||||
*/
|
|
||||||
private $typeExtensions = array();
|
private $typeExtensions = array();
|
||||||
|
|
||||||
/**
|
|
||||||
* @var FormTypeGuesserInterface
|
|
||||||
*/
|
|
||||||
private $typeGuesser;
|
private $typeGuesser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -29,11 +29,8 @@ use Symfony\Component\Validator\ConstraintViolationInterface;
|
|||||||
class ViolationMapperTest extends TestCase
|
class ViolationMapperTest extends TestCase
|
||||||
{
|
{
|
||||||
const LEVEL_0 = 0;
|
const LEVEL_0 = 0;
|
||||||
|
|
||||||
const LEVEL_1 = 1;
|
const LEVEL_1 = 1;
|
||||||
|
|
||||||
const LEVEL_1B = 2;
|
const LEVEL_1B = 2;
|
||||||
|
|
||||||
const LEVEL_2 = 3;
|
const LEVEL_2 = 3;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -58,9 +58,9 @@ class OrderedHashMapIterator implements \Iterator
|
|||||||
/**
|
/**
|
||||||
* Creates a new iterator.
|
* Creates a new iterator.
|
||||||
*
|
*
|
||||||
* @param array $elements the elements of the map, indexed by their
|
* @param array $elements The elements of the map, indexed by their
|
||||||
* keys
|
* keys
|
||||||
* @param array $orderedKeys the keys of the map in the order in which
|
* @param array $orderedKeys The keys of the map in the order in which
|
||||||
* they should be iterated
|
* they should be iterated
|
||||||
* @param array $managedCursors An array from which to reference the
|
* @param array $managedCursors An array from which to reference the
|
||||||
* iterator's cursor as long as it is alive.
|
* iterator's cursor as long as it is alive.
|
||||||
|
@ -18,24 +18,9 @@ namespace Symfony\Component\HttpFoundation;
|
|||||||
*/
|
*/
|
||||||
class AcceptHeaderItem
|
class AcceptHeaderItem
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $value;
|
private $value;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var float
|
|
||||||
*/
|
|
||||||
private $quality = 1.0;
|
private $quality = 1.0;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
private $index = 0;
|
private $index = 0;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
private $attributes = array();
|
private $attributes = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -24,41 +24,10 @@ use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser;
|
|||||||
*/
|
*/
|
||||||
class UploadedFile extends File
|
class UploadedFile extends File
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Whether the test mode is activated.
|
|
||||||
*
|
|
||||||
* Local files are used in test mode hence the code should not enforce HTTP uploads.
|
|
||||||
*
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
private $test = false;
|
private $test = false;
|
||||||
|
|
||||||
/**
|
|
||||||
* The original name of the uploaded file.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $originalName;
|
private $originalName;
|
||||||
|
|
||||||
/**
|
|
||||||
* The mime type provided by the uploader.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $mimeType;
|
private $mimeType;
|
||||||
|
|
||||||
/**
|
|
||||||
* The file size provided by the uploader.
|
|
||||||
*
|
|
||||||
* @var int|null
|
|
||||||
*/
|
|
||||||
private $size;
|
private $size;
|
||||||
|
|
||||||
/**
|
|
||||||
* The UPLOAD_ERR_XXX constant provided by the uploader.
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
private $error;
|
private $error;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -76,11 +45,12 @@ class UploadedFile extends File
|
|||||||
* Calling any other method on an non-valid instance will cause an unpredictable result.
|
* Calling any other method on an non-valid instance will cause an unpredictable result.
|
||||||
*
|
*
|
||||||
* @param string $path The full temporary path to the file
|
* @param string $path The full temporary path to the file
|
||||||
* @param string $originalName The original file name
|
* @param string $originalName The original file name of the uploaded file
|
||||||
* @param string|null $mimeType The type of the file as provided by PHP; null defaults to application/octet-stream
|
* @param string|null $mimeType The type of the file as provided by PHP; null defaults to application/octet-stream
|
||||||
* @param int|null $size The file size
|
* @param int|null $size The file size provided by the uploader
|
||||||
* @param int|null $error The error constant of the upload (one of PHP's UPLOAD_ERR_XXX constants); null defaults to UPLOAD_ERR_OK
|
* @param int|null $error The error constant of the upload (one of PHP's UPLOAD_ERR_XXX constants); null defaults to UPLOAD_ERR_OK
|
||||||
* @param bool $test Whether the test mode is active
|
* @param bool $test Whether the test mode is active
|
||||||
|
* Local files are used in test mode hence the code should not enforce HTTP uploads
|
||||||
*
|
*
|
||||||
* @throws FileException If file_uploads is disabled
|
* @throws FileException If file_uploads is disabled
|
||||||
* @throws FileNotFoundException If the file does not exist
|
* @throws FileNotFoundException If the file does not exist
|
||||||
|
@ -714,9 +714,9 @@ class Request
|
|||||||
* It is better to explicitly get request parameters from the appropriate
|
* It is better to explicitly get request parameters from the appropriate
|
||||||
* public property instead (query, attributes, request).
|
* public property instead (query, attributes, request).
|
||||||
*
|
*
|
||||||
* @param string $key the key
|
* @param string $key The key
|
||||||
* @param mixed $default the default value if the parameter key does not exist
|
* @param mixed $default The default value if the parameter key does not exist
|
||||||
* @param bool $deep is parameter deep in multidimensional array
|
* @param bool $deep Is parameter deep in multidimensional array
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
|
@ -19,11 +19,6 @@ namespace Symfony\Component\HttpFoundation\Session\Attribute;
|
|||||||
*/
|
*/
|
||||||
class NamespacedAttributeBag extends AttributeBag
|
class NamespacedAttributeBag extends AttributeBag
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Namespace character.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
private $namespaceCharacter;
|
private $namespaceCharacter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user