Fabien Potencier
13bf31bcf3
Merge branch '2.7'
...
* 2.7: (22 commits)
Php Inspections (EA Extended): squash all PR-13813 commits
replaced the last remaining is_integer() call
[2.3] [Config] [Console] [DependencyInjection] [DomCrawler] [Form] [HttpKernel] [PropertyAccess] [Security] [Translation] [Yaml] static code analysis, code cleanup
[FrameworkBundle] simplify dep declaration
[VarDumper] Fix "next element is already occupied"
[Serializer] Introduce ObjectNormalizer
[Serializer] Refactoring of metadata
[Validator] Added missing galician (gl) translations
[WebProfilerBundle] Update ajax calls in toolbar to add the css error class
[PropertyAccess] stop overwriting once a reference is reached (3rd)
[OptionsResolver] Remove Unused Variable from Foreach Cycles
[travis] Tests Security sub-components
[Serializer] Test that normalizers ignore non-existing attributes.
[Twig] bootstrap_3_layout.html.twig is usable as a trait
[travis] Tests Security sub-components
[Serializer] Fix ClassMetadataFactory PHPDoc
CS fixes
[Serializer] rename exception interface
[Serializer] Optimize GetSetMethodNormalizer and PropertyNormalizer
[TwigBridge] Bootstrap Layout - Fix the label of checkbox cannot be empty
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
src/Symfony/Component/Console/Tests/Helper/LegacyDialogHelperTest.php
src/Symfony/Component/Serializer/composer.json
2015-03-07 08:44:26 +01:00
Fabien Potencier
0f00f7c7e8
Merge branch '2.6' into 2.7
...
* 2.6:
Php Inspections (EA Extended): squash all PR-13813 commits
replaced the last remaining is_integer() call
[2.3] [Config] [Console] [DependencyInjection] [DomCrawler] [Form] [HttpKernel] [PropertyAccess] [Security] [Translation] [Yaml] static code analysis, code cleanup
[FrameworkBundle] simplify dep declaration
[VarDumper] Fix "next element is already occupied"
[Validator] Added missing galician (gl) translations
[PropertyAccess] stop overwriting once a reference is reached (3rd)
[OptionsResolver] Remove Unused Variable from Foreach Cycles
[travis] Tests Security sub-components
[Twig] bootstrap_3_layout.html.twig is usable as a trait
[travis] Tests Security sub-components
CS fixes
[TwigBridge] Bootstrap Layout - Fix the label of checkbox cannot be empty
[travis] test with php nightly
Conflicts:
.travis.yml
src/Symfony/Bundle/FrameworkBundle/composer.json
src/Symfony/Component/Security/Http/Tests/Firewall/ExceptionListenerTest.php
src/Symfony/Component/Security/Http/Tests/Firewall/RememberMeListenerTest.php
2015-03-07 08:43:00 +01:00
Vladimir Reznichenko
1530c355d5
Php Inspections (EA Extended): squash all PR-13813 commits
2015-03-07 08:39:22 +01:00
Vadim Kharitonov
77f4dbfa10
[OptionsResolver] Remove Unused Variable from Foreach Cycles
2015-03-03 17:59:03 +03:00
Tobias Schultze
295bba297e
[OptionsResolver] removed deprecated functionality
2015-03-02 11:29:50 +01:00
Tobias Schultze
5bf779d228
Merge branch '2.7'
...
Conflicts:
src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php
2015-03-02 11:23:46 +01:00
Tobias Schultze
755ea09a44
Merge branch '2.6' into 2.7
2015-03-02 11:21:01 +01:00
Tobias Schultze
cb37fbe707
[OptionsResolver] fix allowed values with null
2015-03-01 03:42:24 +01:00
Tobias Schultze
e3e9a4d269
[OptionsResolver] add missing deprecated phpdoc for setNormalizers
2015-03-01 03:08:17 +01:00
Tobias Schultze
9607e82c78
replace deprecated options resolver uses by new ones
2015-02-28 13:09:24 +01:00
Tobias Schultze
7e9d2e618b
[OptionsResolver] add missing deprecation triggers
2015-02-27 17:11:51 +01:00
Fabien Potencier
5e90ef4dc6
feature #13407 [Form] Remove deprecated setDefaultOptions and OptionsResolverInterface (peterrehm)
...
This PR was merged into the 3.0-dev branch.
Discussion
----------
[Form] Remove deprecated setDefaultOptions and OptionsResolverInterface
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | yes
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | symfony/symfony-docs#4786
| Related | #12891
Commits
-------
9b9158b
Remove the deprecated OptionsResolverInterface
6026781
Removed deprecated setDefaultOptions methods
2015-02-05 08:08:05 +01:00
Issei.M
5e5ba393f1
[OptionsResolver] replaced some exception messages
2015-01-25 05:11:58 +01:00
Peter Rehm
9b9158b4da
Remove the deprecated OptionsResolverInterface
2015-01-20 14:17:10 +01:00
Hugo Hamon
fd9c7bb39f
Normalized @deprecated annotations.
2015-01-05 16:02:26 +01:00
Hugo Hamon
86b9f6b0c6
Adds deprecation notices for structures to be removed in 3.0.
2015-01-05 15:57:15 +01:00
Henrik Bjornskov
ae544e5d8f
Add type aliases for allowed types in OptionsResolver
2015-01-03 13:06:09 +01:00
Nicolas Grekas
1de4920fc5
[2.6] Remove possible call_user_func()
2014-11-21 10:20:58 +01:00
Tobias Schultze
b93c4c072c
[OptionsResolver] add missing exception based on OutOfBoundsException and clarify message
2014-10-24 17:00:21 +02:00
Tobias Schultze
8bcbcc3fd7
[OptionsResolver] fix calling resolve from within closure
2014-10-24 17:00:10 +02:00
Tobias Schultze
dc1250c2b8
[OptionsResolver] fix invalid value exception formatting
2014-10-24 17:00:04 +02:00
Tobias Schultze
6c2130f578
[OptionsResolver] fix counting of options
...
and make sure the tests are compatible with phpunit strict mode
2014-10-24 16:59:59 +02:00
Bernhard Schussek
642c119e0c
[OptionsResolver] Merged Options class into OptionsResolver
2014-10-22 11:07:34 +02:00
Bernhard Schussek
453882cd03
Revert "feature #11716 [OptionsResolver] Added a light-weight, low-level API for basic option resolving (webmozart)"
...
This reverts commit aa594450d2
, reversing
changes made to cc63edbfa8
.
2014-10-21 11:07:51 +02:00
Bernhard Schussek
90660255a2
[OptionsResolver] Added a light-weight, low-level API for basic option resolving
2014-09-12 12:25:18 +02:00
WouterJ
a4f208b95b
Changed order of validation
2014-07-28 23:12:49 +02:00
Fabien Potencier
3baa43b44e
Merge branch '2.4'
...
* 2.4: (52 commits)
Fix #8205 : Deprecate file mode update when calling dumpFile
Fix #10437 : Catch exceptions when reloading a no-cache request
Fix libxml_use_internal_errors and libxml_disable_entity_loader usage
removed ini check to make uploadedfile work on gae
Update OptionsResolver.php
fixed comment in forms.xml file
Clean KernelInterface docblocks
Cast the group name as a string
Fixed doc of InitAclCommand
[Form] Fix "Array was modified outside object" in ResizeFormListener.
Fix IBAN validator
[Process] Remove unreachable code + avoid skipping tests in sigchild environment
Fixed bug that incorrectly causes the "required" attribute to be omitted from select even though it contains the "multiple" attribute
Added travis_retry to .travis.yml
[Process] fix some typos and refactor some code
[Process] Fix unit tests in sigchild disabled environment
[Process] Trow exceptions in case a Process method is supposed to be called after termination
fixed typo
[Process] fixed fatal errors in getOutput and getErrorOutput when process was not started
[Process] Fix escaping on Windows
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php
src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php
src/Symfony/Component/Process/Process.php
src/Symfony/Component/Process/ProcessPipes.php
src/Symfony/Component/Process/Tests/AbstractProcessTest.php
2014-03-26 12:51:10 +01:00
Shady
79ceb094f0
Update OptionsResolver.php
...
Deleting an extra space in the exception.
2014-03-25 14:10:48 +01:00
Fabien Potencier
a596ba362b
feature #8375 [OptionsResolver] Allow giving a callback as an allowedValue to OptionsResolver (marekkalnik)
...
This PR was merged into the 2.5-dev branch.
Discussion
----------
[OptionsResolver] Allow giving a callback as an allowedValue to OptionsResolver
I recently had to use an option which was an array and could contain some one or multiple values from a list. As it could contain all possible combinations, it was not possible to validate it with a list of allowed values.
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | --
| License | MIT
| Doc PR | https://github.com/symfony/symfony-docs/pull/3437
Commits
-------
07d1d30
Allow giving a callback as an allowedValue to OptionsResolver
2014-01-07 10:34:19 +01:00
Marek Kalnik
07d1d3074e
Allow giving a callback as an allowedValue to OptionsResolver
2014-01-07 10:05:19 +01:00
Dariusz Górecki
7c47e34928
[CS Fix] Consistent coding-style of concatenation operator usage
2013-04-02 10:39:57 +01:00
Olivier Maisonneuve
23962fc47c
validateOptionValues throw a notice if an allowed value is set and the corresponding option isn't.
2012-10-03 11:57:12 +02:00
Evan Kaufman
aa890aedfc
validateOptionTypes checking existence of key rather than value
2012-08-03 12:17:58 -05:00
Evan Kaufman
c6a9638adb
OptionsResolver#validateOptionTypes should check if option value exists before checking its type; added corresponding test
...
OptionsResolver#validateOptionsCompleteness would already have thrown exception if the option were required, so this should only affect something explicitly marked as optional
2012-07-31 20:34:40 -05:00
Bernhard Schussek
e659f0e39d
[OptionsResolver] Improved the performance of normalizers
...
Normalizers are now stored in the Options instance only once. Previously,
normalizers were stored in Options upon resolving, which meant that
they were added a lot of time if the same resolver was used for many
different options arrays.
This improvement led to an improvement of 30ms on
advancedform.gpserver.dk/app_dev.php/taxclasses/1
2012-07-26 15:21:14 +02:00
Bernhard Schussek
3075fa6b39
[OptionsResolver] Renamed filters to normalizers
2012-07-21 13:02:12 +02:00
Bernhard Schussek
a924dabd57
[OptionsResolver] Made the OptionsResolver clonable
2012-07-12 19:13:45 +02:00
Bernhard Schussek
dc2fa9dc69
[OptionsResolver] Added OptionsResolverInterface
2012-05-25 12:34:15 +02:00
Bernhard Schussek
97de0041a1
[OptionsResolver] Added option type validation capabilities
2012-05-25 12:28:17 +02:00
Bernhard Schussek
0af5f06703
[OptionsResolver] Added method setFilters() for augmenting the final option values
2012-05-25 12:28:17 +02:00
Tobias Schultze
104dcf251d
[OptionsResolver] fixed bugs concerning required options
2012-05-24 05:31:42 +02:00
Tobias Schultze
37a3a29c59
[OptionsResolver] optimized validation
2012-05-24 02:48:57 +02:00
Fabien Potencier
41621e42e9
fixed phpdoc @param alignment
2012-05-15 22:19:31 +02:00
Bernhard Schussek
d2c162d842
[OptionsResolver] Added methods isKnown() and isRequired()
2012-05-15 11:47:43 +02:00
Bernhard Schussek
1c5f6c76c1
[OptionsResolver] Fixed issues mentioned in the PR comments
2012-05-14 19:35:41 +02:00
Bernhard Schussek
16f7d20dff
[OptionsResolver] Improved implementation and clarity of the Options class
2012-05-14 19:35:40 +02:00
Bernhard Schussek
9c76750cb8
[OptionsResolver] Fixed doc and block nesting
2012-05-14 19:35:35 +02:00
Bernhard Schussek
876fd9ba17
[OptionsResolver] Implemented fluid interface
2012-05-14 19:35:07 +02:00
Bernhard Schussek
95454f5f6b
[OptionsResolver] Fixed typos
2012-05-14 19:35:07 +02:00
Bernhard Schussek
256b7081a4
[OptionsParser] Renamed OptionsParser to OptionsResolver
2012-05-14 19:35:07 +02:00