Fabien Potencier
05778c719f
[BrowserKit] fixed CS
2011-05-24 20:37:52 +02:00
Fabien Potencier
e0bf310b55
Merge remote branch 'hnw/cookie-raw-value'
...
* hnw/cookie-raw-value:
added test for Cookie#getRawValue and CookieJar#AllRawValues
fixed doc comment
[BrowserKit] dealing with raw value for cookies
2011-05-24 20:20:57 +02:00
Fabien Potencier
aa356e7288
[BrowserKit] fixed cookie management (see RFC 2109)
2011-05-24 20:08:11 +02:00
everzet
98b0bdcb15
[DependencyInjection] added failing private service user test-case
2011-05-23 22:38:23 +03:00
Fabien Potencier
15bede5a63
[Console] refactored style management
...
The current code was broken when a style was defined inline:
<bg=black>Foo</bg=black>
When creatin a new style formatter, it's better to let the formatter
apply the style to the text.
2011-05-23 16:54:36 +02:00
Yoshio HANAWA
6556f62e4f
added test for Cookie#getRawValue and CookieJar#AllRawValues
2011-05-23 21:53:30 +09:00
Fabien Potencier
7ab3fdeb83
[Finder] added a way to ignore all 'hidden' files
2011-05-23 11:05:58 +02:00
Miha Vrhovnik
e8326aa650
Renamed attributes to attr to be consistent with templating.
2011-05-23 08:10:03 +02:00
Miha Vrhovnik
c7074672ba
Added support for additional attributes in Form types that list field as their parent.
2011-05-22 22:59:00 +02:00
Pascal Borreli
7f089c0b05
[Process] Fixed namespace typo and windows test
2011-05-22 14:57:37 +00:00
Fabien Potencier
a2a1a88291
Merge remote branch 'schmittjoh/annotations'
...
* schmittjoh/annotations:
removed obsolete compiler pass
fixed some more tests
fixed tests
removed unused vendor
some cleanups
updated to latest changes
[WebProfilerBundle] removed @ignorePhpDoc annotations
[FrameworkBundle] fixed default
[FrameworkBundle] updated configuration
[Validator] updated fixtures
updated UPDATE file
updated Annotations integration
[Routing] updated to changes
[FrameworkBundle] added framework-wide annotation reader, updated validator tests
[WebProfilerBundle] fixed controllers
fixed unit tests
added Annotations library
2011-05-22 08:45:24 +02:00
Victor Berchet
e117613550
[Form] Fix for nested forms getting erroneously set as rendered
2011-05-20 15:48:55 +02:00
Johannes Schmitt
ddc00fa0f6
removed obsolete compiler pass
2011-05-20 06:59:30 +02:00
Johannes Schmitt
6c0b0449a6
Merge remote branch 'origin/master' into annotations
...
Conflicts:
UPDATE.md
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
2011-05-19 22:49:59 +02:00
Johannes Schmitt
42fb34b647
fixed tests
2011-05-19 22:46:34 +02:00
Kris Wallsmith
ed8ecab7ea
[HttpFoundation] fixed locale accessor after session clear
2011-05-19 11:45:12 -07:00
Fabien Potencier
9714524b39
fixed a unit test and CS
2011-05-19 17:38:16 +02:00
jsor
fd6c254b47
[HttpFoundation] changed checking for deleted cookie to be conform with setcookie()
2011-05-19 17:14:03 +02:00
jsor
f9b6c8b74a
[HttpFoundation] included cookie headers in string representation
2011-05-19 17:14:01 +02:00
jsor
e6d929aa71
[HttpFoundation] added __toString() method
2011-05-19 17:13:58 +02:00
Fabien Potencier
9fe1c3ae0e
Merge remote branch 'bschussek/form'
...
* bschussek/form: (22 commits)
Fix merge error (function "guess" was in there twice)
[Form] Added test case for bf2f9d2a02
[Form] Form::isBound() and Form::isValid() work correctly now for read-only forms
[Locale] Improved error reporting and added stubs for intl_is_failure(), intl_get_error_code() and intl_get_error_message()
[Form] Implemented fix for 361c67f54f
[Form] Add test for the handling of array values in the constraint violation
[Form] Further simplified PropertyPath code
[Form] Added test for 6c337d1cc0
[Form] Removed unused option "pattern" of date and time type
[Form] Renamed view variable "name" to "full_name"
[Form] Renamed collection option "type_options" to "options" to be consistent with the repeated type
[Form] CSRF documentation and a few CS changes
[Form] Move CSRF options from types to the CSRF extension
[Form] Added a search form field type
[Form] Optimization of PropertyPath
[Form] replace assertEquals by assertFalse, assertTrue, assertNull
[Form] fix file permissions to 644 again ;)
[Form] add tests for type_options in collectionType
fix file permissions to 644
[Form] add type_options for CollectionType to be abble to set options to type
...
2011-05-19 16:25:30 +02:00
Miha Vrhovnik
2e286073a4
Removed ability to override method from GET request
2011-05-19 14:08:34 +02:00
Miha Vrhovnik
65ed6f7763
Added support for request method overriding via X-HTTP-Method-Override
...
This type of override is supported by MS MVC3 and is recommended by Google.
Also added ability to override request method via ?_method= when
request is made via GET.
2011-05-19 09:33:08 +02:00
Bernhard Schussek
c575432790
[Form] Added test case for bf2f9d2a02
2011-05-19 01:43:47 +02:00
Bernhard Schussek
13a964ae6d
[Form] Form::isBound() and Form::isValid() work correctly now for read-only forms
2011-05-19 01:24:28 +02:00
Bernhard Schussek
829aa4dc0b
[Locale] Improved error reporting and added stubs for intl_is_failure(), intl_get_error_code() and intl_get_error_message()
2011-05-19 01:15:37 +02:00
Dirk Pahl
361c67f54f
[Form] Add test for the handling of array values in the constraint violation
2011-05-18 23:48:32 +02:00
Bernhard Schussek
af66beed76
[Form] Added test for 6c337d1cc0
2011-05-18 23:20:37 +02:00
Bernhard Schussek
f467317bab
[Form] Renamed view variable "name" to "full_name"
...
The variable "name" now contains the local, short name (equivalent to $form->getName()).
2011-05-18 22:16:16 +02:00
Bernhard Schussek
b39a21fbaf
[Form] Renamed collection option "type_options" to "options" to be consistent with the repeated type
2011-05-18 21:52:59 +02:00
Bernhard Schussek
2711fbc418
Merge remote branch 'jaugustin/fix_form' into jaugustin_merge
...
Conflicts:
src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php
src/Symfony/Component/Form/Extension/Core/Type/CollectionType.php
2011-05-18 21:40:20 +02:00
Johannes Schmitt
0eb7564f7d
Merge remote branch 'origin/master' into security
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Listener/RequestAttributeInitializingListener.php
2011-05-18 12:54:47 +02:00
Johannes Schmitt
53f5c23c8f
[Security/Acl] small voter refactoring
2011-05-18 12:48:50 +02:00
Fabien Potencier
2cd04547fd
[Routing] renamed some exceptions
2011-05-17 16:52:02 +02:00
Fabien Potencier
0168241014
[DependencyInjection] renamed NonExistentParameterException and NonExistentServiceException to ParameterNotFoundException and ServiceNotFoundException
2011-05-17 16:26:08 +02:00
Fabien Potencier
eb202bb7b7
merged kriswallsmith/form/csrf-intention
2011-05-17 15:25:50 +02:00
alexandresalome
1d6b94189b
[Routing] Use routing exceptions in the dumper and add tests.
2011-05-17 11:31:47 +02:00
Fabien Potencier
02e77ec4e3
[Routing] moved Matcher exceptions
2011-05-17 10:11:27 +02:00
Fabien Potencier
51eb746925
Merge remote branch 'alexandresalome/feat-routing-exceptions'
...
* alexandresalome/feat-routing-exceptions:
[Routing] Fix the exception inheritance + Add the LICENCE block in new files
[Routing] Change the Exception namespacing + base class for every exception + update PHPDoc
[Routing] Add specific exceptions for the UrlGenerator
2011-05-17 09:52:44 +02:00
Fabien Potencier
86a2d27da9
Merge remote branch 'stloyd/ipvalidator_fix'
...
* stloyd/ipvalidator_fix:
Better comment about no test IP6 addresses for "FILTER_FLAG_NO_RES_RANGE"
Refactoring of IpValidator to use native php filter extension, also adding additional flag support and test cover.
2011-05-17 09:25:04 +02:00
Fabien Potencier
0872813278
Merge remote branch 'Seldaek/test_fix'
...
* Seldaek/test_fix:
[HttpFoundation] Windows test fixes
2011-05-17 09:16:46 +02:00
Kris Wallsmith
914620f948
[Form] renamed CSRF page_id to intention
2011-05-16 14:16:29 -07:00
Johannes Schmitt
796d9af0c4
some updates
2011-05-16 22:26:24 +02:00
Johannes Schmitt
fa0ef500ae
[Tests] updated invalid use statement
2011-05-16 11:57:12 +02:00
Johannes Schmitt
8e5b11a226
Merge remote branch 'origin/master' into annotations
2011-05-15 18:35:25 +02:00
Fabien Potencier
0bfb260f44
Merge remote branch 'usefulthink/issue913-yaml-utf8-checking'
...
* usefulthink/issue913-yaml-utf8-checking:
CS fixes in unit-test
[Yaml] added exceptions when non-utf8 encoding is detected
2011-05-14 17:35:56 +02:00
Fabien Potencier
439f4c34f6
Merge remote branch 'stloyd/patch-5'
...
* stloyd/patch-5:
Fix MimeTypeTest
2011-05-14 17:30:00 +02:00
Fabien Potencier
e46e53daa0
Merge remote branch 'stof/graphviz'
...
* stof/graphviz:
[DependencyInjection] Fixed a property visibility in GraphvizDumper and removed a useless instanciation in the test
2011-05-14 17:23:50 +02:00
Joseph Bielawski
25c25ab4b1
Fix MimeTypeTest
2011-05-14 05:21:07 -07:00
Johannes Schmitt
48dc85dc43
[Security/Acl] fixes #853
2011-05-14 14:19:55 +02:00
Johannes Schmitt
2d8afd8dd6
Merge remote branch 'origin/master' into annotations
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
src/Symfony/Bundle/FrameworkBundle/Resources/config/validator.xml
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
2011-05-14 12:51:05 +02:00
Deni
e75edf205d
[Form] Fixed path mapping for DelegatingValidator
2011-05-14 13:38:34 +04:00
Bernhard Schussek
e0ff61949e
[Form] Renamed the value "text" of the "widget" option of the "date" type to "single-text"
2011-05-13 19:17:28 +02:00
Bernhard Schussek
da28f8e3b3
[Form] Added FormTypeInterface::getAllowedOptionValues() to better validate passed options
2011-05-13 18:44:03 +02:00
Bernhard Schussek
21013b930c
[Form] Improved test coverage of FormFactory and improved error handling
2011-05-13 18:29:18 +02:00
alexandresalome
07b7dc0c86
[Routing] Change the Exception namespacing + base class for every exception + update PHPDoc
2011-05-13 17:46:31 +02:00
alexandresalome
05d9e74293
[Routing] Add specific exceptions for the UrlGenerator
...
When generating URL, thrown exceptions are InvalidArgumentException and
distinction of errors is quite difficult. This modification brings different
exceptions for different cases
2011-05-13 16:59:37 +02:00
Christophe Coevoet
c2f074b7d5
[DependencyInjection] Fixed a property visibility in GraphvizDumper and removed a useless instanciation in the test
2011-05-13 12:18:09 +02:00
Martin Schuhfuss
8340ac628d
CS fixes in unit-test
2011-05-13 01:08:37 +02:00
Martin Schuhfuss
571768b9b9
[Yaml] added exceptions when non-utf8 encoding is detected
...
encoding is detected using the `mb_detect_encoding()`-function
in strict-mode. Checking is done before the parsing starts.
Without this patch, the calls to `preg_replace()` using the
'u'-modifier would cause the non-utf8-string being processed
to be empty when parsing starts which makes the parsing return
no result.
2011-05-12 22:02:56 +02:00
Joseph Bielawski
d43894b42e
Remove invalid code-coverage annotions
2011-05-12 06:46:53 -07:00
Joseph Bielawski
bf87a35595
Better comment about no test IP6 addresses for "FILTER_FLAG_NO_RES_RANGE"
2011-05-11 14:18:45 -07:00
stloyd
5997b930a5
Refactoring of IpValidator to use native php filter extension, also adding additional flag support and test cover.
2011-05-11 13:19:03 +02:00
Jeremie Augustin
bea448339b
[Form] replace assertEquals by assertFalse, assertTrue, assertNull
2011-05-11 11:19:21 +02:00
Jeremie Augustin
d3db844cfa
[Form] fix file permissions to 644 again ;)
2011-05-11 11:19:21 +02:00
Jeremie Augustin
fb0a37f9ba
[Form] add tests for type_options in collectionType
2011-05-11 11:19:21 +02:00
Fabien Potencier
1ae5ef6849
Merge remote branch 'vicb/form-padded-choice-list'
...
* vicb/form-padded-choice-list:
[Form] Allow for arbitrary keys in PaddedChoiceList
2011-05-11 10:18:30 +02:00
Fabien Potencier
9abd53c2b4
merged Seldaek/serializer_fix
2011-05-11 10:16:15 +02:00
Fabien Potencier
a05b8fbb19
Merge remote branch 'schmittjoh/security'
...
* schmittjoh/security:
[HttpFoundation] fixed php doc
updated UPDATE file
[Security] use deep flag when retrieving username + password
[HttpFoundation] added $deep flag to Request::get()
[HttpFoundation] removed getDeep(), added a boolean flag to get() instead
2011-05-11 10:14:15 +02:00
Fabien Potencier
9651175914
Merge remote branch 'vicb/form-transformers'
...
* vicb/form-transformers:
[Form] Add argument type checking in BaseDateTimeTransformer
[Form] Catch exceptions in DataTransformers
2011-05-11 10:12:23 +02:00
Victor Berchet
dac798c791
[Form] Catch exceptions in DataTransformers
2011-05-10 20:21:02 +02:00
Johannes Schmitt
89f60e04d1
[HttpFoundation] removed getDeep(), added a boolean flag to get() instead
2011-05-10 11:16:25 +02:00
Jordi Boggiano
99c67134fe
[Serializer] Split decoder/encoder maps
2011-05-10 09:17:33 +02:00
digitalkaoz
5305454cc1
fixed code style
2011-05-09 23:36:56 +02:00
digitalkaoz
0ed7285828
[Process] added tests for Process and PhpExecutableFinder
2011-05-09 22:44:35 +02:00
Fabien Potencier
05e75e2712
[Finder] made the Custom filter accept all PHP callbacks
2011-05-09 15:30:41 +02:00
Victor Berchet
e0f03471ae
Merge branch 'master' into form-padded-choice-list
2011-05-09 15:30:04 +02:00
Fabien Potencier
e1c52764ce
[Finder] refactored SortableIterator
2011-05-09 15:14:42 +02:00
Fabien Potencier
50c1cce014
Merge remote branch 'schmittjoh/security'
...
* schmittjoh/security:
[HttpFoundation] added unit test
[Security][HttpFoundation] splits Request::hasSession() into hasSession(), and hasPreviousSession()
[SecurityBundle] added some tests
add provider to configuration
update DI to handle change in config and another provider
separate dbal specific acl config
add provider to configuration
update DI to handle change in config and another provider
separate dbal specific acl config
2011-05-09 14:26:36 +02:00
Jordi Boggiano
f8447aa74c
[Serializer] NormalizableInterface now takes a Serializer and make sure the is always optional
2011-05-09 13:59:54 +02:00
Pascal Borreli
b4e220dce9
[Validator] Added unit tests
2011-05-08 21:52:34 +00:00
Jordi Boggiano
2ea544f21b
[Serializer] Fixed tests
2011-05-08 18:21:39 +02:00
Johannes Schmitt
f7e03f2d87
Merge remote branch 'origin/master' into annotations
...
Conflicts:
UPDATE.md
src/Symfony/Bundle/DoctrineBundle/Resources/config/orm.xml
src/Symfony/Bundle/DoctrineBundle/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php
2011-05-08 07:28:23 +02:00
Pascal Borreli
4c098c2dbc
[Locale] Silenting error to test return value
2011-05-07 16:59:10 +00:00
Pascal Borreli
0839a2f6c9
[Locale] Added symfony 1 test cases
2011-05-07 16:59:07 +00:00
Pascal Borreli
5a432dd469
[EventDispatcher] Full coverage
2011-05-07 16:59:05 +00:00
Pascal Borreli
f061de2ff2
[DomCrawler] Full coverage
2011-05-07 16:59:02 +00:00
Pascal Borreli
cc6318b622
[Translation] Full coverage
2011-05-07 16:58:51 +00:00
Jordi Boggiano
b9a2eb66e9
[Serializer] CS fixes
2011-05-06 19:37:13 +02:00
Jordi Boggiano
ded30a2937
[Serializer] Split supports in supportsNormalization and supportsDenormalization
2011-05-06 19:36:56 +02:00
Victor Berchet
68b3d0d5ac
[Form] Allow for arbitrary keys in PaddedChoiceList
2011-05-06 10:31:51 +02:00
Daniel Holmes
8d96f6c009
[Validator] fixed namespaces for validator tests
2011-05-06 02:37:03 +10:00
Johannes Schmitt
4d5db59e1e
[HttpFoundation] added unit test
2011-05-05 09:14:48 +02:00
Fabien Potencier
3f69333acb
[HttpKernel] refactored the ErrorHandler class
2011-05-05 08:53:16 +02:00
Fabien Potencier
fe9ef5c68b
[Routing] fixed deep nested route collections ( closes #770 )
2011-05-04 23:29:47 +02:00
Fabien Potencier
36bcfcc5ee
Merge remote branch 'bschussek/form'
...
* bschussek/form:
[Form] CSRF fields are not included in the children of a FormView anymore if the view is not the root
[Form] FormView::offsetUnset() is now supported. It was possible anyway using getChildren() and setChildren().
[Form] Split the option "modifiable" of the "collection" type into "allow_add" and "allow_delete"
[Form] Added test for last commit by kriswallsmith and improved dealing with original names
[Form] Fixed variable scope when entering nested form helpers
[Form] Added tests for blocks/templates in the format _<ID>_(widget|row|label|...)
[Form] updated listener to check that data is an array
2011-05-04 22:13:33 +02:00
Kris Wallsmith
ae46150bc8
[HttpFoundation] added support for X-Forwarded-Port request header
2011-05-04 09:56:34 -07:00
Bernhard Schussek
74cca63938
[Form] CSRF fields are not included in the children of a FormView anymore if the view is not the root
2011-05-04 18:27:20 +02:00
Bernhard Schussek
3cc5d9f4cd
[Form] Split the option "modifiable" of the "collection" type into "allow_add" and "allow_delete"
2011-05-04 17:29:59 +02:00
Bernhard Schussek
bf1dfbbe99
[Form] Added test for last commit by kriswallsmith and improved dealing with original names
...
The form component should now guarantee to always pass an UploadedFile object to your model. There you can call getOriginalName() to retrieve the original name of the uploaded file. For security reasons, the real file name is a generated hash value.
2011-05-04 17:04:44 +02:00
Bernhard Schussek
eb50d766da
[Form] Fixed variable scope when entering nested form helpers
...
The consequence of this commit is that variables are accessible that have been passed to a surrounding form helper.
Example template:
{% block my_widget_label %}
<label>{{ label }}
{% endblock %}
{% block my_widget_row %}
{# It is not necessary to explicitely pass through the label variable #}
{{ form_label(form) }}
{{ form_widget(form) }}
{% endblock %}
Example usage:
{{ form_row(form.mywidget, { 'label': 'My Widget' }) }}
2011-05-04 15:40:15 +02:00
Bernhard Schussek
38098604af
[Form] Added tests for blocks/templates in the format _<ID>_(widget|row|label|...)
2011-05-04 15:33:51 +02:00
Fabien Potencier
9230e712c3
fixed unit tests
2011-05-04 08:46:01 +02:00
Fabien Potencier
807c1d8f2f
fixed test
2011-05-03 23:09:15 +02:00
Fabien Potencier
28fec7e4d8
[HttpKernel] fixed previous commit
2011-05-03 14:57:02 +02:00
Fabien Potencier
27d02a7d4a
[Routing] fixed regression (/ should not be matched by /{foo} when foo has no default value)
2011-05-03 14:48:08 +02:00
Johannes Schmitt
672c4ef122
Merge remote branch 'origin/master' into annotations
...
Conflicts:
UPDATE.md
2011-05-03 14:38:51 +02:00
Jordi Boggiano
b3ef74d309
[HttpKernel] Fix console output for reals
2011-05-03 09:25:56 +02:00
Fabien Potencier
0139a800f9
[HttpKernel] prevented output on the console when running the test
2011-05-03 09:00:56 +02:00
Fabien Potencier
d2a9b23c28
[Routing] fixed routing when a pattern has only one segment which is an optional variable
2011-05-03 08:54:33 +02:00
Jordi Boggiano
5f569efed6
[HttpFoundation] Windows test fixes
2011-05-02 18:39:39 +02:00
Jordi Boggiano
d05c59227d
[HttpKernel] Prevent errors leaking out in the console on windows
2011-05-02 18:28:05 +02:00
Johannes Schmitt
f2160b2e79
[Validator] updated fixtures
2011-05-01 14:50:28 +02:00
Johannes Schmitt
0d0c737630
Merge remote branch 'origin/master' into annotations
...
Conflicts:
UPDATE.md
2011-04-30 10:55:43 +02:00
Fabien Potencier
b048c44b46
Merge remote branch 'vicb/file-security'
...
* vicb/file-security:
[HttpFoundation] Sanitize uploaded file original name
2011-04-30 07:21:47 +02:00
Igor Wiedler
907e693350
[HttpFoundation] Fix FileException checking in FileTest
2011-04-29 22:48:38 +02:00
Victor Berchet
dccac192d6
[HttpFoundation] Sanitize uploaded file original name
2011-04-29 19:27:53 +02:00
Johannes Schmitt
7e26575bbd
[FrameworkBundle] added framework-wide annotation reader, updated validator tests
2011-04-29 15:54:44 +02:00
Eriksen Costa
12968f144c
[Locale] updated ICU data, changes to note:
...
- The Indian Rupee sign was updated, few fonts supports it: http://en.wikipedia.org/wiki/Indian_rupee_sign
- Updated LocaleTypeTest, zh_Hans_MO was removed from ICU
2011-04-28 11:57:55 -03:00
Fabien Potencier
40d256e058
Merge remote branch 'kriswallsmith/kernel/bundle-extension'
...
* kriswallsmith/kernel/bundle-extension:
[HttpKernel] added check of default extension alias convention
[AsseticBundle] coding standard and comment tweaks
[HttpKernel] added BundleInterface::getContainerExtension() which is implicitly loaded
2011-04-28 08:48:57 +02:00
Fabien Potencier
7d024125d3
[Form] fixed unit tests
2011-04-28 08:11:14 +02:00
Fabien Potencier
9e23189eb1
Merge remote branch 'Brouznouf/patch-2'
...
* Brouznouf/patch-2:
[Serializer] [XmlEncoder] Add unit test for decoding / encoding root with attributes
[Seriliazer] [XmlEncoder] Optimize conditions
[Serializer] [XmlEncoder] Allow decoder to extract attributes in root element
2011-04-28 07:49:55 +02:00
Pascal Borreli
47948c8d2b
[Form] Fixed bug creating empty "1" directory in root
2011-04-28 01:06:38 +00:00
Francis Besset
72c074a101
[Session] Used \Locale::setDefault() when the locale is setted
2011-04-28 00:03:32 +02:00
Brouznouf
5712b3bd0e
[Serializer] [XmlEncoder] Add unit test for decoding / encoding root with attributes
2011-04-27 22:16:24 +02:00
Victor Berchet
d350e01e33
File & UploadedFile tweaks
2011-04-27 09:10:41 +02:00
Fabien Potencier
00bfd10ca9
[HttpFoundation] refactored File management to be safer
2011-04-27 08:50:33 +02:00
Fabien Potencier
5bb9da4b6d
[HttpFoundation] renamed getDefaultExtension() to guessExtension()
...
The renamed method now returns null if it cannot guess the extension. It allows
the developper to know whether the extension has been guessed or not.
2011-04-27 08:03:19 +02:00
Fabien Potencier
9f846997ef
Merge remote branch 'Infranology/normalize-bools'
...
* Infranology/normalize-bools:
capitalized 'boolean'
replaced 'bool' with 'Boolean'
2011-04-27 07:48:12 +02:00
Eriksen Costa
164ce5210d
capitalized 'boolean'
2011-04-27 02:35:10 -03:00
Eriksen Costa
4db0752894
replaced 'bool' with 'Boolean'
2011-04-27 02:35:03 -03:00
Fabien Potencier
aa3ec504ae
removed File::getWebPath()
...
This has been removed for several reasons:
* the framework does not know where the document root is and should not care
* as the document root was static, it was impossible to have several document roots depending on some business rules (see next one)
* sometimes, the document root is not under the web root directory (so the logic of getWebPath() is not always correct)
* the feature was not used anywhere in the core
2011-04-27 06:49:05 +02:00
Kris Wallsmith
e726cdd917
changed some skipped tests to incomplete
2011-04-26 07:22:22 -07:00
Fabien Potencier
175f944f93
[DependencyInjection] added NonExistentParameterException that indicates where a non-existent parameter is being used
2011-04-26 12:36:25 +02:00
Fabien Potencier
fefee0d5e5
[Routing] fixed URL generation when an optional variable value is 0
2011-04-26 09:50:57 +02:00
Fabien Potencier
035afc1f4e
[Routing] fixed regression in Routing matching algorithm
2011-04-26 09:01:25 +02:00
Fabien Potencier
3cd0a4d2d2
[ClassLoader] fixed CS
2011-04-26 07:07:52 +02:00
Kris Wallsmith
7a7b448680
[HttpKernel] added BundleInterface::getContainerExtension() which is implicitly loaded
2011-04-25 21:12:35 -07:00
Dustin Whittle
f86bab78ff
[Classloader] Fixed tests teardown when apc is not available
2011-04-25 16:12:36 -07:00
Fabien Potencier
7c95bda751
[Routing] simplified route compiler
2011-04-25 12:38:20 +02:00
Fabien Potencier
889c422d6e
Merge remote branch 'igorw/ipv6'
...
* igorw/ipv6:
[HttpFoundation] minor optimization
minor adjustments suggested by vicb
[HttpFoundation] IPv6 support for RequestMatcher
[HttpFoundation] refactor RequestMatcherTest to use dataProvider
[Validator] use full iPv6 regex
[Validator] add IPv6 support to UrlValidator
[HttpFoundation] add IPv6 support to Request
[HttpFoundation] test Request::create with an IP as host name
[HttpFoundation] refactor Request::getClientIp test
2011-04-24 22:04:25 +02:00
Fabien Potencier
36a63be0a5
Merge remote branch 'dustinwhittle/master'
...
* dustinwhittle/master:
[Classloader] Added phpdoc with example usage + refactored unit tests fixtures
[Classloader] Refactored ApcUniversalClassLoader to use setUp() to detect APC
[Classloader] Fixed typo + coding standards in ApcUniversalClassLoader test
[Classloader] Fixed APC class loader + added unit tests
2011-04-24 22:02:59 +02:00
Fabien Potencier
2f3ddb88ef
Merge remote branch 'bschussek/form'
...
* bschussek/form:
[Form] Automatically setting "data_class" option if objects are passed at the creation of a form
[Form] Improved the way passed data is handled in FormFactory
[Form] Simplified FileType code
[HttpFoundation] TemporaryStorage automatically creates the directory if it doesn't exist yet
[Form] Changed FormBuilder::build() to FormBuilder::create(). You hvae to pass the resulting builder to FormBuilder::add() manually now
[Form] Added FieldTypeValidatorExtension and fixed FQCN of DelegatingValidator
2011-04-24 21:53:24 +02:00
Dustin Whittle
e8bb64c17c
[Classloader] Added phpdoc with example usage + refactored unit tests fixtures
2011-04-24 07:00:27 -07:00
Dustin Whittle
29802faef4
[Classloader] Refactored ApcUniversalClassLoader to use setUp() to detect APC
2011-04-24 07:00:26 -07:00
Dustin Whittle
1f3a968ef2
[Classloader] Fixed typo + coding standards in ApcUniversalClassLoader test
2011-04-24 07:00:26 -07:00
Dustin Whittle
dbb5ca459d
[Classloader] Fixed APC class loader + added unit tests
2011-04-24 07:00:26 -07:00
Fabien Potencier
4ed8d4f6b5
[Routing] fixed URL generation when a non-optional variable is empty
2011-04-24 13:06:02 +02:00
Bernhard Schussek
675e5ded9e
[Form] Changed FormBuilder::build() to FormBuilder::create(). You hvae to pass the resulting builder to FormBuilder::add() manually now
...
$builder->add(
$builder->create('child', 'form')
->add('foo', 'text')
->add('bar', 'text')
);
2011-04-24 12:08:50 +02:00
Fabien Potencier
8eb1dfc6a0
[Translation] forced translated id to strings
2011-04-24 09:42:41 +02:00
Fabien Potencier
b906cb59b8
Merge remote branch 'lsmith77/getAllPrevious'
...
* lsmith77/getAllPrevious:
renamed getPreviouses() to getAllPrevious
2011-04-24 08:46:54 +02:00
Ryan Weaver
af8aad9c34
[Form] Throwing exception for invalid "input" type of DateType
...
Also fixed typo in test of previous commit
2011-04-23 20:36:40 -05:00
Ryan Weaver
66cc555bb1
[Form] Tweak to FileTypeTest to avoid warning
2011-04-23 19:47:14 -05:00
Ryan Weaver
78b2062c5e
[Form] Adding an exception for an invalid widget option in DateType
2011-04-23 19:42:40 -05:00
Lukas Kahwe Smith
fd97c0caca
renamed getPreviouses() to getAllPrevious
2011-04-24 01:08:15 +02:00
Fabien Potencier
81deedfc1b
[Form] fixed unit tests
2011-04-23 22:17:51 +02:00
Fabien Potencier
8b74c6eb9c
[DomCrawler] refactored URLs management in Link and Form
2011-04-23 21:45:44 +02:00
Lukas Kahwe Smith
d9491a743e
removed support for interface injection as well as all relevant tests
2011-04-23 11:42:31 +02:00
Fabien Potencier
9a4da005a2
Merge remote branch 'bschussek/form-extensions'
...
* bschussek/form-extensions:
[Form] Refactored code from CoreExtension to new ValidatorExtension
[Form] Added FormTypeExtensionInterface
[Form] Reorganized code into "form extensions"
2011-04-23 09:11:25 +02:00
Pascal Borreli
df3947019e
[HttpFoundation][Windows] Fixed test after removal of realpath 03bb3580a6
2011-04-22 20:49:07 +00:00
Bernhard Schussek
6f1bc356a8
[Form] Refactored code from CoreExtension to new ValidatorExtension
...
CoreExtension is now independent of the Symfony2 validator.
2011-04-22 19:38:21 +02:00
Bernhard Schussek
1ce2db87e2
[Form] Added FormTypeExtensionInterface
...
With implementations of this interface, existing types can be amended.
The Csrf extension, for example, now contains a class FormTypeCsrfExtension
that adds CSRF capabilities to the "form" type.
To register new type extensions in the DIC, tag them with "form.type_extension"
and the name of the extended type as alias.
2011-04-22 19:24:38 +02:00
Bernhard Schussek
54e66c518f
[Form] Reorganized code into "form extensions"
...
The extension classes are now the only constructor argument of the FormFactory class. They replace the existing "type loader" classes.
new FormFactory(array(
new CoreExtension($validator, $storage),
new CsrfExtension($csrfProvider),
new DoctrineOrmExtension($em),
));
Together with a few upcoming commits this mechanism will make
* extension of the form framework in bundles and
* usage of the forms outside of Symfony2
much easier.
2011-04-22 17:41:21 +02:00
Igor Wiedler
9ae5023a70
[HttpFoundation] IPv6 support for RequestMatcher
2011-04-22 17:37:22 +02:00
Igor Wiedler
5a80c2ff17
[HttpFoundation] refactor RequestMatcherTest to use dataProvider
2011-04-22 17:07:57 +02:00
Igor Wiedler
afcdbf8b79
[Validator] add IPv6 support to UrlValidator
2011-04-22 17:07:44 +02:00
Igor Wiedler
82699c5a98
[HttpFoundation] add IPv6 support to Request
2011-04-22 17:07:44 +02:00
Igor Wiedler
18e9268112
[HttpFoundation] test Request::create with an IP as host name
2011-04-22 17:07:35 +02:00
Igor Wiedler
7815bbf3ea
[HttpFoundation] refactor Request::getClientIp test
2011-04-22 17:07:24 +02:00
Fabien Potencier
417839345f
Merge remote branch 'lsmith77/request_format_tweaks'
...
* lsmith77/request_format_tweaks:
added text/html to default format mapping
return "q" from splitHttpAcceptHeader() to enable more complex accept header negotiations
added support for setting a custom default format in Request::getRequestFormat()
2011-04-22 15:33:01 +02:00
Fabien Potencier
fd05f02b23
[HttpFoundation] added logic to automatically add the charset when not present in the Content-Type for relevant Content-Types
2011-04-22 15:26:38 +02:00
Bernhard Schussek
a97366fbcb
[Form] Split signature of FormFactory::create() into create() and createNamed()
...
The data can now be passed to all creation methods:
$form = $factory->create('form', $data);
By default, a form will receive the name of its type ("form" in above example). If you wish to pass a custom name, use createNamed():
$form = $factory->createNamed('form', 'myform', $data);
2011-04-22 10:42:21 +02:00
Fabien Potencier
0069a70e42
Merge branch 'form'
...
* form: (291 commits)
[FrameworkBundle] updated method call
[Form] Removing excess option in the TimezoneType
[FrameworkBundle] Adding check for invalid form type for better exception message
[TwigBundle] Removing dbug text in form template
[Form] Removed obsolete code in TextType
[Form] fixed translations escaping
[Form] Adding a check that the choice_list option on the ChoiceType implements the ChoiceListInterface.
[Form] added support for groups in form validation (when using array data)
[Form] fixed error bubbling for choices when expanded is true
[Form] added a unit test
[Form] Removed obsolete view variables
[Form] Renamed ChoiceUtil to FormUtil and gave its methods more general names
[Form] Changed separator for Twig blocks from double underscore to single underscore to match the PHP template separator
[Form] Removed StripTagsListenerTest
[Form] Removed StripTagsListener. Its implementation is insufficient and needs to be replaced by a better one.
[Form] added a way to specify the form constraint when building the form (useful if you work with arrays instead of objects)
[Form] Added test for 'email' type and fixed a few bugs
[Form] Removed obsolete constraints from validation.xml
Revert "[Form] removed validation.xml file (not used anymore)"
Added html5 email input to the forms
...
2011-04-22 09:36:52 +02:00
Fabien Potencier
1118fbdae7
[Validator] fixed unit test
2011-04-22 08:41:58 +02:00
Eriksen Costa
589b0ab4ed
Merge branch 'master' into form-frameworkbundle-form-guessers-fix
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormGuessersPass.php
src/Symfony/Component/Form/MoneyField.php
2011-04-21 23:03:40 -03:00
Fabien Potencier
8b2b8e16dc
Merge remote branch 'schmittjoh/referenceValidation'
...
* schmittjoh/referenceValidation:
[DependencyInjection] also check references of inlined services
[DependencyInjection] adds emulation of "exception-on-invalid-reference" behavior
2011-04-21 22:44:20 +02:00
Fabien Potencier
7e33159723
[Routing] the global parameters must not be added in the QS when generating URLs
2011-04-21 09:52:35 +02:00
Fabien Potencier
d721cbe1e2
Merge remote branch 'kriswallsmith/http/filesystem-session-fix'
...
* kriswallsmith/http/filesystem-session-fix:
[HttpFoundation] fixed FilesystemSessionStorage
2011-04-20 23:09:04 +02:00
Fabien Potencier
f7d44148df
[Routing] removed unused defaults variable
2011-04-20 22:55:23 +02:00
Kris Wallsmith
30511d2965
[HttpFoundation] fixed FilesystemSessionStorage
2011-04-20 13:20:21 -07:00
Fabien Potencier
fd1636b324
[Routing] added RedirectableUrlMatcher
2011-04-20 15:54:48 +02:00
Ryan Weaver
967a42b797
[Form] Adding a check that the choice_list option on the ChoiceType implements the ChoiceListInterface.
...
Also removed an unused "use" statement.
2011-04-20 08:52:31 -05:00
Fabien Potencier
9d2ea4ec31
Merge remote branch 'kriswallsmith/dic/method-renames'
...
* kriswallsmith/dic/method-renames:
added method renames to UPDATE
[DependencyInjection] renamed ContainerBuilder::remove() as removeDefinition() to be more consistent with other definition-related methods
[DependencyInjection] renamed Definition::setArgument() as replaceArgument() to be more specific
2011-04-20 14:28:09 +02:00
Fabien Potencier
0dbfa18c46
[Routing] made a small optimization to the route dumper
2011-04-20 14:19:33 +02:00
Fabien Potencier
117321d3c6
replaced array for request context in Routing by a RequestContext class
2011-04-20 14:19:32 +02:00
Kris Wallsmith
cdf706d357
[DependencyInjection] renamed Definition::setArgument() as replaceArgument() to be more specific
2011-04-20 04:47:44 -07:00
Fabien Potencier
07aae98495
[Routing] added support for _scheme requirement
...
The _scheme requirement can be used to force routes to always match one given scheme
and to always be generated with the given scheme.
So, if _scheme is set to https, URL generation will force an absolute URL if the
current scheme is http. And if you request the URL with http, you will be redirected
to the https URL.
2011-04-20 10:49:32 +02:00
Fabien Potencier
7c54518626
[Routing] refactored some unit tests
2011-04-19 23:21:22 +02:00
Fabien Potencier
2014ff6856
merged lsmith77/url_generator_null_parameter
2011-04-19 14:21:14 +02:00
Fabien Potencier
95d4bcc5db
fixed unit tests (broken by previous commit)
2011-04-19 14:10:41 +02:00
Fabien Potencier
e09a0f9f80
Merge remote branch 'brikou/coding_standards'
...
* brikou/coding_standards:
removed empty lines/trailing spaces
2011-04-19 14:06:30 +02:00
Fabien Potencier
33498bffa4
[Form] added a unit test
2011-04-18 19:01:09 +02:00
Lukas Kahwe Smith
1ecaade68d
added support for parameters with default null
2011-04-18 15:35:05 +02:00
Bernhard Schussek
b93f5a372a
[Form] Renamed ChoiceUtil to FormUtil and gave its methods more general names
2011-04-18 15:07:12 +02:00
Bernhard Schussek
f078554c2a
[Form] Removed StripTagsListenerTest
2011-04-18 14:27:18 +02:00
Bernhard Schussek
57722550de
[Form] Added test for 'email' type and fixed a few bugs
2011-04-18 13:04:18 +02:00
Fabien Potencier
b71f9d2708
[Form] added a unit tests for previous commit
2011-04-18 08:21:18 +02:00
Bernhard Schussek
be5738564f
[Form] Improved regular expression in AbstractType::getName() and added unit tests
2011-04-17 18:01:22 +02:00
Lukas Kahwe Smith
c2ac8304b0
added text/html to default format mapping
2011-04-17 14:39:07 +02:00
Lukas Kahwe Smith
53c7bcf3aa
added support for setting a custom default format in Request::getRequestFormat()
2011-04-17 14:37:35 +02:00
hidenorigoto
43952b3175
[BrowserKit] added tests for setServerParameter/getServerParameter methods
2011-04-17 11:24:55 +09:00
Fabien Potencier
c6818d8bf7
[HttpKernel] added support for controllers as arrays and object with an __invoke method
...
Controllers can now be any valid PHP callable
2011-04-16 16:26:15 +02:00
Brikou CARRE
e898445b94
removed empty lines/trailing spaces
2011-04-15 21:12:02 +02:00
Bernhard Schussek
2ea68dfcd2
[Form] Improved test coverage of NumberToLocalizedStringTransformer
2011-04-15 16:25:48 +02:00
Bernhard Schussek
30922d9375
[Form] Fixed: Checkboxes in an expanded choice field never have the 'required' HTML5 attribute. Closes http://trac.symfony-project.org/ticket/9588
2011-04-15 16:10:04 +02:00
Bernhard Schussek
9582221862
[Form] ResizeFormListener::preBind() now handles empty strings. Fixes https://github.com/symfony/symfony/pull/40
2011-04-15 15:43:02 +02:00
Bernhard Schussek
d0c572716a
Merge remote branch 'henrikbjorn/form' into henrik_merge
2011-04-15 15:34:29 +02:00
Bernhard Schussek
bc0efff28d
[Form][FrameworkBundle] Fixed escaping of choice widgets
2011-04-15 15:27:15 +02:00
Henrik Bjørnskov
e687685f98
[Form] change FormView::setVar,getVar,getVars,hasVar to set,get,all,has
...
[Form] Fixed {get,set,has}Var references in templating php
[Form] Added getVars to FormView to ease usage in Twig. Also added some phpdoc and cleaned up the get method by adding a default value
[Form] Fix
[Form] Delete file generated by test
2011-04-15 15:25:37 +02:00
Bernhard Schussek
e787d5dc22
[Form] PropertyPath now can handle elements with special characters
2011-04-15 15:25:19 +02:00
Bernhard Schussek
4f1ae660fa
[Form] Fixed choice labels in expanded choice fields
2011-04-15 15:04:44 +02:00
Bernhard Schussek
41c6ab0ac7
[Form] Field labels can now be passed in the 'label' option
2011-04-15 15:03:10 +02:00
Bernhard Schussek
3d92549382
[FrameworkBundle] Fixed various escaping problems and added test cases for them
2011-04-15 14:38:46 +02:00
Bernhard Schussek
990bef8afb
[Form][FrameworkBundle][TwigBundle] Fixed: CSRF fields are not rendered for nested forms anymore
2011-04-15 14:05:33 +02:00
Bernhard Schussek
8fe21285ba
[Form] Renamed Form::getView() to createView() to clearly indicate that each call returns a new object
2011-04-15 13:52:11 +02:00
Bernhard Schussek
276b23a344
[Form] Moved creation logic of FormView to Form class
2011-04-15 13:41:45 +02:00
Bernhard Schussek
44fa9bbeaa
[Form] Fixed: CSRF token is regenerated if validation fails to avoid stalled tokens. Closes https://github.com/symfony/symfony/pull/415
2011-04-15 12:50:50 +02:00
Bernhard Schussek
c9c8b5c98e
[Form] Improved test coverage of MonthChoiceList and fixed timezone used in it. Fixes https://github.com/symfony/symfony/pull/433
...
Based on dfb93b1bcebf1f34d3a880d00f36acb2bcca0f08:
[FORM] Fixed DateField Month Choices
The month choices were calculated using the current day of the month with
gmmktime rather than the 1st of the month. Additionally, this provides a
UTC timestamp which is passed to the formatter (IntlDateFormatter) which
converts the timestamp using the current timezone. This means that the UTC
timestamp for 1st March was being converted for my timezone (EST) and giving
a date of 28th February, leading to Feb appearing again in the popup form
instead of Mar.
2011-04-15 12:26:07 +02:00
Bernhard Schussek
77bea81ed5
[Form] Improved test coverage of ResizeFormListener. Fixed https://github.com/symfony/symfony/pull/493
2011-04-15 11:06:51 +02:00
Bernhard Schussek
fa457b1cc4
[Form] Renamed 'filter' listeners to 'on' to match naming conventions across the framework
2011-04-15 10:57:32 +02:00
Johannes Schmitt
fd5caa9546
[DependencyInjection] also check references of inlined services
2011-04-15 08:47:28 +02:00
Johannes Schmitt
6d7a9d752d
[DependencyInjection] adds emulation of "exception-on-invalid-reference" behavior
...
This pass requires that all of references are valid at the end of
the compilation process.
2011-04-15 00:55:18 +02:00
Bernhard Schussek
c6fe6a750d
[Form] Added functional test for the 'size' attribute in the select tags of a time field
2011-04-14 15:29:55 +02:00
Bernhard Schussek
e3db366116
[Form] Passing FormFactory to FormBuilder in its constructor
2011-04-14 15:25:30 +02:00
Bernhard Schussek
44af72bbf4
Merge remote branch 'symfony/master' into experimental
2011-04-14 15:04:59 +02:00
Bernhard Schussek
72b17cd67c
[Form] Renamed TemplateContext to FormView
2011-04-14 15:02:51 +02:00
Bernhard Schussek
ca6ae09779
[Form] Removed TemplateContext::create()
2011-04-14 14:42:17 +02:00
Bernhard Schussek
4907c7d81d
[Form] Added test coverage for expanded choice fields
2011-04-14 14:18:25 +02:00
Bernhard Schussek
c2dcebf6ea
[FrameworkBundle] Added test coverage for FormHelper and fixed various rendering bugs
2011-04-14 13:37:27 +02:00
Bernhard Schussek
ce5f3073bd
Fixed test suite and names of accessor methods in TemplateContext
2011-04-14 03:52:52 +02:00
Bernhard Schussek
602846f386
[Form] Added tests for table_layout.html.twig
2011-04-14 03:38:19 +02:00
Bernhard Schussek
96f040cec1
[Form] Added extensive test coverage for div_layout.html.twig
2011-04-14 03:15:56 +02:00
Fabien Potencier
5316decd8c
Merge remote branch 'hhamon/shared_maxage_fix'
...
* hhamon/shared_maxage_fix:
[HttpFoundation] force Response to be "public" if setSharedMaxAge() is called.
2011-04-13 23:24:31 +02:00
Fabien Potencier
6957dae4f9
[HttpKernel] added support for cookies in Client
2011-04-13 20:25:35 +02:00
Fabien Potencier
66c4bc727c
[HttpFoundation] renamed Cookie::getExpire() to getExpiresTime() to be consistent with the DomCrawler component
2011-04-13 20:10:39 +02:00
hhamon
053d83f557
[HttpFoundation] force Response to be "public" if setSharedMaxAge() is called.
2011-04-13 15:58:48 +02:00
Bernhard Schussek
0b0535d30a
[Form] Fixed fatal error in test
2011-04-13 14:01:25 +02:00
George Giannoulopoulos
81e1d4f11d
Refactoring, replace is_null() wuth null ===
2011-04-13 13:56:15 +02:00
Bernhard Schussek
2a18be1c9f
Merge remote branch 'symfony/master' into experimental
2011-04-13 13:53:20 +02:00
Fabien Potencier
92f77cce97
Merge remote branch 'lsmith77/ResolveInvalidReferencesPass'
...
* lsmith77/ResolveInvalidReferencesPass:
updated tests (aka removed exceptions handling)
use synthetic services instead of special exceptions
2011-04-13 11:46:52 +02:00
Lukas Kahwe Smith
0e572c241f
updated tests (aka removed exceptions handling)
2011-04-13 11:36:42 +02:00
Fabien Potencier
94eed37a93
Merge remote branch 'schmittjoh/parameterBagEnhancement'
...
* schmittjoh/parameterBagEnhancement:
[HttpFoundation] added some unit tests
[HttpFoundation] allow to retrieve paths of arbitrary depths
2011-04-13 07:58:14 +02:00
Brouznouf
8e6233e9c2
[Serializer] Using DOMElement instead of SimpleXmlElement in XmlEncoder to permit some behavior
2011-04-12 00:58:21 +02:00
Fabien Potencier
9ceec87eb8
[DomCrawler] fixed various bug with URIs
2011-04-08 17:52:43 +02:00
Fabien Potencier
5558ee24c7
Merge remote branch 'hason/logicalname'
...
* hason/logicalname:
[Templating] changed __toString method (synonym for getLogicalName method)
[Templating] fixed phpdoc a test
[FrameworkBundle] added getLogicalName() method to TemplateReference
[Templating] added method to return the template logical name, added test
2011-04-08 17:22:11 +02:00
Martin Hason
20c5db2197
[Templating] fixed phpdoc a test
2011-04-08 11:24:28 +02:00
Martin Hason
6b5d991685
[Templating] added method to return the template logical name, added test
2011-04-08 10:31:47 +02:00
Victor Berchet
ceb2c976de
[HttpKernel] Fix the case where no resource is found
2011-04-08 08:52:03 +02:00
Pascal Borreli
3dfbc08d73
[HttpKernel][Windows] Removed useless DIRECTORY_SEPARATOR conversion
2011-04-06 17:30:32 +00:00
Bernhard Schussek
67582c9a5c
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php
2011-04-06 16:06:26 +02:00
Bernhard Schussek
e476231e8a
[Form] Removed invalid tests, cleaned up some tests, added test coverage
2011-04-06 15:58:53 +02:00
Kris Wallsmith
9b3ce98432
[Validator] added test skip if APC is not enabled for the CLI
2011-04-06 04:16:16 -07:00
Kris Wallsmith
9ff2ca7f1d
[Validator] fixed apc cache
2011-04-06 04:07:37 -07:00
Johannes Schmitt
408b94b968
[HttpFoundation] added some unit tests
2011-04-06 08:17:03 +02:00
Victor Berchet
7707c0f251
[Kernel] Fix bundle inheritance
2011-04-06 07:46:08 +02:00
Fabien Potencier
e3679ef44f
[Routing] decoupled Routing from FrameworkBundle
2011-04-05 15:21:32 +02:00
Johannes Schmitt
6d4814c115
Merge branch 'acl-fix' of https://github.com/comfortablynumb/symfony into security
2011-04-05 12:25:24 +02:00
Gustavo Adrian
2e96f2c63d
Fixed exception that was thrown while updating a field ACE
2011-04-05 13:05:20 -03:00
Fabien Potencier
7c0a39c353
[Routing] optimized the output of the PHP matcher dumper
2011-04-05 11:58:56 +02:00
Bernhard Schussek
0cf8cc762a
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/money_field.html.php
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/percent_field.html.php
2011-04-04 15:16:08 +02:00
Victor Berchet
5317c96fef
Update for Bundle names long again (= include the 'Bundle' suffix)
2011-04-04 11:39:41 +02:00
Victor Berchet
7ed18bf829
[Kernel] Make locateResource() throws an exception when a resource from a Bundle hides a custom resource
2011-04-04 11:24:51 +02:00
Victor Berchet
3cd3dd39ba
[Kernel] Make resources overriding consistent across bundle directories and resource directories
2011-04-04 11:24:51 +02:00
Victor Berchet
d0b6ed2bb6
[Kernel] Improve test semantic
2011-04-04 11:24:51 +02:00
Victor Berchet
3e64106aae
[Kernel] Update tests with shorter bundle names
2011-04-04 11:24:51 +02:00
Victor Berchet
dcd727c092
[Kernel] Restore the tests for the locateResource method
2011-04-04 11:24:51 +02:00
Fabien Potencier
f232b3cdda
reverted Merge remote branch 'kriswallsmith/kernel/shorter-bundle-names'
2011-04-04 11:10:56 +02:00
Fabien Potencier
6a5356290a
Revert "[HttpKernel] updated tests for shorter bundle names"
...
This reverts commit fb7e87da7d
.
2011-04-04 11:08:37 +02:00
Fabien Potencier
ad4a0bda1c
[Console] changed returned value of CommandTester to the command exit code
2011-04-03 22:30:40 +02:00
Fabien Potencier
53274512e2
Merge remote branch 'weaverryan/better_import_exception_and_bug_fix'
...
* weaverryan/better_import_exception_and_bug_fix:
[Config] Improving the exception when a resource cannot be imported
[DependencyInjection] Fixing a bug where "ignore_errors" doesn't work in YAML and XML
2011-04-02 18:37:51 +02:00
Bernhard Schussek
72a41f8c94
[Form] Fixed: Booleans can be used as choice keys now
2011-04-02 18:26:28 +02:00
Bernhard Schussek
a5d0b3aea6
[Form] Changed FormBuilder::set(Client|Norm)Transformer to FormBuilder::prepend(Client|Norm)Transformer and FormBuilder::append(Client|Norm)Transformer to facilitate extension of types
2011-04-02 16:39:19 +02:00
Bernhard Schussek
fc59936740
[Form] Fixed: ThemeRenderer::isChoiceSelected() works correctly for boolean choices
2011-04-02 16:00:46 +02:00
Pascal Borreli
8a82aee56f
[Locale][Windows] Fixing tests for old ICU version (default in php.net packages)
2011-04-02 13:19:30 +00:00
Bernhard Schussek
d3b7c4e8c1
[Form] Moved getLabel(), isChoiceSelected() and isChoiceGroup() from ChoiceListInterface to ThemeRenderer
2011-04-02 14:14:18 +02:00
Bernhard Schussek
94f2baa895
[Form] Fixed BooleanToStringTransformer::reverseTransform() to accept NULL values. Fixes ChoiceTypeTest
2011-04-02 13:00:19 +02:00
Bernhard Schussek
37e8e1270c
[Form][FrameworkBundle][TwigBundle] Renamed view variable 'disabled' to 'read_only' to match with the according FormInterface methods
2011-04-02 12:18:43 +02:00
Bernhard Schussek
39b0aafc00
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Bundle/DoctrineBundle/Resources/config/orm.xml
2011-04-02 12:08:27 +02:00
Bernhard Schussek
35d9b7f800
[Form] Improved test coverage of Form. The emptyValue closure now receives the Form instance to use form data when constructing new objects
2011-04-02 12:00:19 +02:00
Bernhard Schussek
4f39234741
[Form] bind() is ignored if a form is read-only
2011-04-02 11:39:15 +02:00
Bernhard Schussek
ca20aef379
[Form] Improved test coverage of DelegatingValidator and fixed validation group inheritance
2011-04-02 11:35:58 +02:00
Bernhard Schussek
33b0011f86
[Form] Improved test coverage of Form
2011-04-02 11:22:29 +02:00
Ryan Weaver
65ac5ec7c0
[DependencyInjection] Fixing a bug where "ignore_errors" doesn't work in YAML and XML
...
Tests added, the arguments were simply mismatched.
2011-04-01 18:59:45 -05:00
Fabien Potencier
1a486492b8
[HttpKernel] fixed test
2011-04-01 18:07:22 +02:00
Kris Wallsmith
c51b716180
[Config] simplified DirectoryResource to only allow one regex
2011-04-01 04:56:50 -07:00
Fabien Potencier
a9160eee70
[Validator] made fields the default option for Collection constraint
2011-03-31 15:36:04 +02:00
Bernhard Schussek
c864d7fae1
[Form] Improved test coverage of Form class
2011-03-31 15:23:33 +02:00
Bernhard Schussek
1ef18360fa
[Form] Made name immutable in FormBuilder to avoid synchronization problems with name and property path
2011-03-31 13:48:06 +02:00
Bernhard Schussek
bbeddf7789
Merge remote branch 'symfony/master' into experimental
2011-03-31 12:32:20 +02:00
Fabien Potencier
59ef0c991c
[Form] fixed two unit tests
2011-03-31 07:36:52 +02:00
Fabien Potencier
c7ccb6643b
[Form] removed unused constructor argument from Type\FieldType (themeFactory and template)
2011-03-31 07:34:04 +02:00
Jeremy Mikola
e295bfc7a5
[Config] Alias used classes in NodeBuilderTest to avoid conflicts with fixture classes required in TreeBuilderTest
...
Depending on the order of execution of Config\Definition\Builder tests (due to filesystem ordering), namespace conflicts can occur between real classes and fixtures loaded by the TreeBuilderTest.
2011-03-30 19:52:00 -04:00
Fabien Potencier
f92055ce42
[Validator] renamed methods that do not follow CS
...
requiredOptions -> getRequiredOptions
targets -> getTargets
defaultOption -> getDefaultOption
2011-03-30 23:18:20 +02:00
Fabien Potencier
525702b5c6
[Validator] renamed method to follow CS
2011-03-30 23:10:30 +02:00
Fabien Potencier
f77b94074f
[HttpFoundation] replaced the option argument of Session by defaultLocale
2011-03-30 17:26:13 +02:00
Bernhard Schussek
55c14680d3
Merge remote branch 'symfony/master' into experimental
2011-03-30 10:31:21 +02:00
Pascal Borreli
33d887e154
[Finder][Windows] Fixed windows tests
2011-03-29 14:32:18 +00:00
Pascal Borreli
0199b5c70d
[HttpFoundation][Windows] Fixed guesser tests if Fileinfo extension is not loaded
...
Didn't test for presence of mime_content_type function since it's obsolete (deprecated) in PHP5
2011-03-29 14:32:17 +00:00
Bernhard Schussek
53838abf3f
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/money_field.html.php
src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/percent_field.html.php
src/Symfony/Component/Form/Resources/config/validation.xml
2011-03-28 22:52:15 +02:00
Kris Wallsmith
fb7e87da7d
[HttpKernel] updated tests for shorter bundle names
2011-03-28 11:37:19 -07:00
Fabien Potencier
49063a5314
Merge remote branch 'kriswallsmith/kernel/shorter-bundle-names'
...
* kriswallsmith/kernel/shorter-bundle-names:
updated codebase to use shorter bundle names
[HttpKernel] updated component to work with shorter bundle names
[HttpKernel] updated Bundle::getName() to validate bundle class name and rtrim "Bundle"
2011-03-28 18:06:41 +02:00
Bernhard Schussek
1fa004ceb2
[Form] Simplified the interface names of the Renderer subnamespace
2011-03-27 23:39:01 +02:00
Bernhard Schussek
cfaa03eeec
[Form] Fixed: empty objects are only created upon binding forms with empty data
2011-03-27 23:07:30 +02:00
Bernhard Schussek
edfae73cd4
[Form] Moved PropertyPath, PropertyPathIterator and VirtualFormAwareIterator to subnamespace Util
2011-03-27 15:37:13 +02:00
Kris Wallsmith
ade83e2e80
updated codebase to use shorter bundle names
...
Controllers:
"BlogBundle:Post:show" is now "Blog:Post:show"
Templates:
"BlogBundle:Post:show.html.twig" is now "Blog:Post:show.html.twig"
Resources:
"@BlogBundle/Resources/config/blog.xml" is now "@Blog/Resources/config/blog.xml"
Doctrine:
"$em->find('BlogBundle:Post', $id)" is now "$em->find('Blog:Post', $id)"
2011-03-27 06:25:43 -07:00
Bernhard Schussek
b180319371
[Form] Moved creation of empty data to Form to clean up DataMapperInterface
2011-03-27 15:12:35 +02:00
Bernhard Schussek
6588a47ba7
[Form] Removed FormBuilder::setDataClass(). Use the FieldType option "data_class" instead.
...
The problem was that "data_class" was used in two places: FormBuilder::build() and PropertyPathMapper.
PropertyPathMapper was already constructed during FormType::buildForm(), so any data class changes made to the FormBuilder wouldn't affect the data class of the PropertyPathMapper anymore and so lead to an inconsistent state.
2011-03-27 14:34:48 +02:00
Kris Wallsmith
dd9ad97a0c
[HttpKernel] updated Bundle::getName() to validate bundle class name and rtrim "Bundle"
2011-03-27 05:31:57 -07:00
Bernhard Schussek
364b0f5208
[Form] Fixed: FormBuilder::add() accepts FormTypeInterface instances
2011-03-27 14:05:06 +02:00
Bernhard Schussek
dc38eeffe3
[Form] Changed the default value of the 'property_path' option to NULL. Explicitely set it to '' or false to disable mapping for a field/form
2011-03-27 14:02:24 +02:00
Bernhard Schussek
b21929423e
[Form] Completely removed the fields variable in the renderer. The renderer itself supports ArrayAccess and Traversable
2011-03-27 13:48:36 +02:00
Bernhard Schussek
eaff9c641e
[Form] Fixed: the default template is only set on the root renderer and reused by children
2011-03-26 19:39:31 +01:00
Bernhard Schussek
a58cfab37d
[Form] Removed form.type.loader tag and according compiler pass to simplify configuration. Custom types that are not in the DIC can be instantiated manually and passed wherever a type is desired.
2011-03-26 18:48:55 +01:00
Bernhard Schussek
9ff91dc997
Merge remote branch 'beberlei/FormsCollectionPrototype' into beberlei-merge
2011-03-26 18:39:20 +01:00
Bernhard Schussek
fae319e77a
[Form] Renderers are now created explicitely using FormFactory::createRenderer(). This improves performance on requests where a form does not need to be rendered
2011-03-26 16:03:34 +01:00
Bernhard Schussek
8c7a93c90c
[Form] Added FormTypeInterface::buildRendererBottomUp() which is called after children are initialized
2011-03-26 16:03:34 +01:00
Bernhard Schussek
c786fac303
[Form] Sample fix implementation of renderers
2011-03-26 16:03:34 +01:00
Bernhard Schussek
a396f8fdc8
Merge remote branch 'symfony/master' into experimental
2011-03-26 16:03:21 +01:00
Johannes M. Schmitt
7887f04dc2
removed Assert prefix from all constraints, renamed annotation namespace to assert
2011-03-26 15:26:05 +01:00
Benjamin Eberlei
d87651b6a2
[Form] Add option "prototype" defaulting to true.
2011-03-26 14:52:03 +01:00
Benjamin Eberlei
f882a511a0
[Form] Initialize on iterator access.
2011-03-26 12:28:46 +01:00
Benjamin Eberlei
cd1ce86aee
[Form] Iterator support for ThemeRenderer
2011-03-26 12:25:47 +01:00
Fabien Potencier
4594cd223b
[HttpKernel] fixed a test that randomly fails
2011-03-26 12:07:57 +01:00
Johannes Schmitt
db2089de0d
Merge branch 'acl-fix' of https://github.com/comfortablynumb/symfony into security
2011-03-26 01:11:11 +01:00
Bernhard Schussek
18b98353d5
Merge branch 'master' into experimental
...
Conflicts:
src/Symfony/Component/Form/Resources/config/validation.xml
2011-03-25 16:07:19 +01:00
Fabien Potencier
8d84fdfedc
[Finder] added Finder::append() method to be able to combine several Finder instances into one
2011-03-25 15:50:47 +01:00
Bernhard Schussek
7585dce8dd
[Form] Added options validation to field creation
2011-03-25 15:30:33 +01:00
Bernhard Schussek
6825ea2489
[Form] Improved test coverage of PropertyPathMapper
2011-03-25 11:27:20 +01:00
Bernhard Schussek
e3ac248617
[Form] Errors are mapped to subforms correctly and bubble up again if necessary
2011-03-25 10:53:36 +01:00
Bernhard Schussek
7b412cc762
[Form] Removed FormFactory::addGuessers() and moved guessers to constructor arg instead
2011-03-25 02:26:14 +01:00
Bernhard Schussek
9b1b8cbffa
[Form] Replaced various occurences of 'field' by 'form'
2011-03-25 02:12:01 +01:00
Bernhard Schussek
3c412ffba0
[Form] Moved Form::validateData() to DelegatingValidator::validateFormData()
2011-03-25 01:59:28 +01:00
Gustavo Adrian
bedbe51081
[Security] ACL: AclVoter::vote only gets an ObjectIdentity if $object is not an instance of ObjectIdentityInterface
2011-03-24 21:54:21 -03:00
Bernhard Schussek
729438fdea
Merge branch 'rename-execute' into experimental
...
Conflicts:
src/Symfony/Component/Form/FileField.php
src/Symfony/Component/Form/Resources/config/validation.xml
2011-03-25 01:38:49 +01:00
Bernhard Schussek
3e29348d21
[Validator] Added support for static callbacks to Callback constraint
2011-03-25 01:36:58 +01:00
Bernhard Schussek
9c6a6e13bf
[Validator] Renamed Execute constraint to Callback
2011-03-25 01:34:35 +01:00
Bernhard Schussek
770d403a52
[Form] Improved error mapping in DelegatingValidator
2011-03-25 00:57:35 +01:00
Bernhard Schussek
4372bd5dc8
[Form] Fixed: Bubbling errors are caught correctly
2011-03-25 00:18:58 +01:00
Bernhard Schussek
262bdcb21d
[Form] Fixed validation
2011-03-25 00:16:21 +01:00
Bernhard Schussek
ef334dbc4a
Merge remote branch 'beberlei/AttributeSupport' into beberlei-merge
2011-03-24 22:53:39 +01:00
Bernhard Schussek
3f390aa271
[Form] Removed EntityType from DefaultTypeLoader
2011-03-24 22:50:39 +01:00
Benjamin Eberlei
ee96ad0e81
[Form] [DoctrineBridge] Move EntityType and DoctrineTypeLoader into Doctrine Bridge
2011-03-24 22:43:00 +01:00
Benjamin Eberlei
8d6dd2b9af
[Form] Add Arbitrary Attribute Support to Form Rendering.
2011-03-24 22:08:08 +01:00
Benjamin Eberlei
6bcc04905c
[Form] Introduce ArrayTypeLoader, Remove EntityManager and FormFactory interface from DefaultTypeLoader
2011-03-24 20:00:17 +01:00
Bernhard Schussek
2faa47d03b
[Form] Added fallback templates to TwigThemeFactory
2011-03-24 15:11:43 +01:00
Bernhard Schussek
1211d77f49
[Form] Introduced renderer theme factories so that themes can be changed during runtime
2011-03-24 14:27:21 +01:00
Fabien Potencier
8cb400a5d8
[Console] fixed a test
2011-03-24 14:03:56 +01:00
Bernhard Schussek
5b41810b6d
Revert "[Form] Changed naming of Themes to ThemeEngines. Theme templates are now 'themes'"
...
This reverts commit 1efd680b68
.
2011-03-24 10:55:12 +01:00
Bernhard Schussek
5078a63c74
Revert "[Form] Fixed more naming of themes and theme engines"
...
This reverts commit 1aa34b7240
.
2011-03-24 10:54:47 +01:00
Fabien Potencier
f5ab021386
Merge remote branch 'aurelijus/clear_name_for_goto'
...
* aurelijus/clear_name_for_goto:
removes unwanted characters from goto name
2011-03-24 10:00:31 +01:00
Fabien Potencier
ff3c66753f
[BrowserKit] tagged the guaranteed BC API
2011-03-24 09:25:46 +01:00
Aurelijus
38318f8f80
removes unwanted characters from goto name
2011-03-24 10:03:59 +02:00
Bernhard Schussek
1aa34b7240
[Form] Fixed more naming of themes and theme engines
2011-03-23 22:51:37 +01:00
Bernhard Schussek
1efd680b68
[Form] Changed naming of Themes to ThemeEngines. Theme templates are now 'themes'
2011-03-23 22:34:58 +01:00
Fabien Potencier
06d00f36ba
Merge remote branch 'kriswallsmith/framework/protocol-relative-base-urls'
...
* kriswallsmith/framework/protocol-relative-base-urls:
[Templating] updated assets helper to leave protocol-relative URLs untouched
[FrameworkBundle] cleaned up test class
2011-03-23 22:03:48 +01:00
Fabien Potencier
a6e6cbbb27
[HttpFoundation] removed the hardcoded ^ and $ from the RequestMatcher
2011-03-23 21:27:04 +01:00
Bernhard Schussek
c01419d856
Merge remote branch 'johnwards/renderer_tests' into renderer-tests-merge
2011-03-23 21:13:36 +01:00
Kris Wallsmith
55671be888
[Templating] updated assets helper to leave protocol-relative URLs untouched
2011-03-23 13:02:49 -07:00
Fabien Potencier
76cf89b800
[Finder] fixed some tests that were failing on the CI server
2011-03-23 20:58:14 +01:00
Fabien Potencier
cb62fde8c9
[Serializer] fixed some tests that were failing on the CI server
2011-03-23 20:27:58 +01:00
Fabien Potencier
b5857528e0
[Routing] moved protected to private
2011-03-23 19:25:56 +01:00
Bernhard Schussek
9839aafb7d
Merge remote branch 'symfony/master' into experimental
2011-03-23 19:18:38 +01:00
Bernhard Schussek
08a09240f6
[Form] Fixed order of input and output timezone to a more natural one
2011-03-23 17:12:04 +01:00
Bernhard Schussek
a880f8d0d1
[Form] Fixed coding conventions
2011-03-23 16:14:53 +01:00
Bernhard Schussek
9e025440ca
Merge remote branch 'johnwards/configuration' into configurable-merge
2011-03-23 16:05:16 +01:00
John Wards
1a014d130e
[Form] Tests for Renderer Plugins
2011-03-22 22:19:51 +00:00
John Wards
2e750f7287
[Form] Coding conventions
2011-03-22 21:02:02 +00:00
John Wards
ef8113c50f
[Form] Base tests for renderers
2011-03-22 20:51:19 +00:00
Fabien Potencier
a95f72fff3
Merge remote branch 'l3l0/routing-tests'
...
* l3l0/routing-tests:
[Routing] added tearDown with cleanup the file system tmp directory
[Routing] moved clean up the directory from tearDown to setUp. Removed setUpBeforeClass method
[Routing] modified place when we store temporary file
[Routing] modified unit test for PhpGeneratorDumper class
[Routing] add unit test for PhpGeneratorDumper class
[Routing] added more tests for UrlGenerator class
2011-03-22 21:44:31 +01:00
Leszek
05a105f641
[Routing] added tearDown with cleanup the file system tmp directory
2011-03-22 21:21:43 +01:00
Leszek
9b80591133
[Routing] moved clean up the directory from tearDown to setUp. Removed setUpBeforeClass method
2011-03-22 21:21:43 +01:00
Leszek
389810e12a
[Routing] modified place when we store temporary file
2011-03-22 21:21:43 +01:00
Leszek
2b820ac9d0
[Routing] modified unit test for PhpGeneratorDumper class
2011-03-22 21:21:43 +01:00
Leszek
1059f7cb82
[Routing] add unit test for PhpGeneratorDumper class
2011-03-22 21:21:42 +01:00
Leszek
fc5295436b
[Routing] added more tests for UrlGenerator class
2011-03-22 21:21:42 +01:00
Fabien Potencier
e159c47cc9
[Routing] fixed UrlMatcher when no method requirement is defined
2011-03-22 20:56:55 +01:00
Fabien Potencier
03282f8d4e
[Config] fixed a test
2011-03-22 19:55:16 +01:00
Fabien Potencier
af9c292001
Merge remote branch 'subsven/master'
...
* subsven/master:
re-add filename based directory filter to the AnnotationDirectoryLoader, now restricting to *.php files and therefore disregarding e.g. SVN metadata files
revert adding filename based filter to the directory resource
Eleminate the need to manually clear the cache if a new controller file containing routing annotations is added - part II * add unit tests * introduce filename filter to DirectoryResource (to restrict change monitoring to a subset of files) * modify AnnotationDirectoryLoader.php to use filename filter set on Controller\.php$
2011-03-22 19:52:55 +01:00
Fabien Potencier
3c0ecf277e
Merge remote branch 'jaypea/PhpDumperFix'
...
* jaypea/PhpDumperFix:
Fixed PhpDumper isSimpleService and changed test fixtures
2011-03-22 19:46:58 +01:00
Jan Prieser
67aaf5ce91
Fixed PhpDumper isSimpleService and changed test fixtures
2011-03-22 17:01:03 +01:00
Fabien Potencier
1991437766
Merge remote branch 'kriswallsmith/router/method-not-allowed'
2011-03-22 16:40:41 +01:00
Bernhard Schussek
ea0e5bb2d6
[Form] Renamed FieldTypeInterface to FormTypeInterface
2011-03-22 12:36:41 +01:00
Bernhard Schussek
270a98e413
[Form] Added support for types that are not registered in the DIC. These are identified by their FQ class name.
2011-03-22 12:33:15 +01:00
Sven Paulus
f93e4b2d73
Eleminate the need to manually clear the cache if a new controller file containing routing annotations is added - part II
...
* add unit tests
* introduce filename filter to DirectoryResource (to restrict change monitoring to a subset of files)
* modify AnnotationDirectoryLoader.php to use filename filter set on Controller\.php$
2011-03-22 09:03:45 +01:00
John Wards
5a5fdd0529
Merge remote branch 'bernhard/experimental' into configuration
2011-03-22 07:43:47 +00:00
Bernhard Schussek
33692eae4a
[Form] Renamed Form::isTransformationSuccessful() to isSynchronized(). This method now indicates whether the data in the different representations is synchronized. Moved 'invalid' error to DefaultValidator
2011-03-22 02:03:22 +01:00
Bernhard Schussek
16d65f6f16
[Form] Moved previously skipped tests from FormTypeTest to FormTest and fixed them
2011-03-22 01:40:02 +01:00
Bernhard Schussek
577e106361
[Form] Implemented custom mapping of data errors to form fields
2011-03-22 01:15:48 +01:00
John Wards
b4406f254d
[Form] Removing Configurable from DataTransformers
2011-03-21 23:01:10 +00:00
John Wards
27267e8007
[Form] Refactoring tests for new DataTransfomer
2011-03-21 21:46:20 +00:00
Bernhard Schussek
87665bc380
[Form] Decoupled FormBuilder from CSRF protection
2011-03-21 22:41:19 +01:00
Bernhard Schussek
c1abf08d9c
[Form] Implemented error bubbling
2011-03-21 22:13:02 +01:00
Bernhard Schussek
01a47457d0
[Form] Improved naming of various interfaces. Renamed DefaultRenderer to ThemeRenderer
2011-03-21 20:57:38 +01:00
Bernhard Schussek
321d40b21a
[Form] Decoupled FormBuilder from ThemeInterface
2011-03-21 20:46:43 +01:00
Bernhard Schussek
61804bbd8b
Merge remote branch 'symfony/master' into experimental
2011-03-21 20:27:39 +01:00
Kris Wallsmith
66cbad3433
[Routing] updated test fixture
2011-03-21 06:18:54 -07:00
Kris Wallsmith
b2f5ac8beb
[Routing] refactored URL matching to support 405 Method Not Allowed responses
2011-03-21 05:56:53 -07:00
hhamon
230b3fff53
added unit tests for User::equals() method
2011-03-21 09:26:09 +01:00
Bernhard Schussek
4989e965cd
[Form] Moved form type tests into according namespace
2011-03-20 15:45:09 +01:00
Bernhard Schussek
119866e06d
[Form] Renamed FormBuilder::getInstance() to getForm()
2011-03-20 15:17:25 +01:00
Bernhard Schussek
2dbb41714a
[Form] Merged Field and Form. Merged FieldBuilder and FormBuilder. After the refactoring, the distinction between the two concepts is small enough to merge them
2011-03-20 13:35:19 +01:00
Bernhard Schussek
fc7281bcab
[Form] Extracted validation logic of form. Fields can now contain multiple validators
2011-03-20 12:00:19 +01:00
Bernhard Schussek
cb599f417e
[Form] Renamed field option 'disabled' to 'read_only'. How to render read-only fields is now the responsibility of the renderer
2011-03-20 10:35:16 +01:00
Bernhard Schussek
295d01745b
[Form] Renamed StripTagsFilter to StripTagsListener until we have better conventions
2011-03-20 10:26:38 +01:00
Bernhard Schussek
2c6c89d898
Merge remote branch 'beberlei/forms' into beberlei-merge
2011-03-20 10:15:59 +01:00
Jakub Zalas
e09b320cdb
[Routing] Added PhpFileLoader tests.
2011-03-19 23:37:58 +01:00
Jakub Zalas
29922faa33
[Routing] Added XmlFileLoader tests handling invalid xml files (schema validation based).
2011-03-19 23:37:58 +01:00
Jakub Zalas
14b7f12349
[Routing] Added XmlFileLoader tests handling invalid xml files when schema validation is not used.
2011-03-19 23:37:58 +01:00
Jakub Zalas
2a17126309
[Routing] Added XmlFileLoader tests for valid resource and pattern routing definitions.
2011-03-19 23:37:58 +01:00
Jakub Zalas
6235f42cd5
[Routing] Added YamlFileLoader test verifying if pattern is required by parseRoute.
2011-03-19 23:37:58 +01:00
Jakub Zalas
4244ae7794
[Routing] Added YamlFileLoader tests.
2011-03-19 23:37:58 +01:00
Jakub Zalas
f981b6c8d2
[Routing] Added Route test.
2011-03-19 23:35:31 +01:00
Jakub Zalas
25d8e279ad
[Routing] Covered Annotation\Route by tests.
2011-03-19 23:35:31 +01:00
Benjamin Eberlei
b43318ee3e
[Form] Add tests for untested classes.
2011-03-19 22:03:49 +01:00
Benjamin Eberlei
d62213662e
Merge branch 'experimental' of git://github.com/bschussek/symfony into forms
2011-03-19 20:36:56 +01:00
Benjamin Eberlei
864a3ec45f
[Form] Add StripTagsFilter EventListener
2011-03-19 20:36:49 +01:00
Bernhard Schussek
6793bcd698
[Form] Removed magic from method signature of add()
2011-03-19 19:20:55 +01:00
Bernhard Schussek
c4b7a77ece
Merge remote branch 'beberlei/forms' into beberlei-merge
...
Conflicts:
src/Symfony/Component/Form/Type/Loader/DefaultTypeLoader.php
2011-03-19 19:01:57 +01:00
Benjamin Eberlei
39c2d3f166
[Form] Add PhpTheme that relies on no Template Engine, generalize tests to use for PhpTheme and PhpEngineTheme. Fixed some bugs
2011-03-19 17:47:18 +01:00
Bernhard Schussek
43a24fa931
[Form] Renamed events to match terminology in Field
2011-03-19 16:59:23 +01:00
Bernhard Schussek
7f9284105d
[Form] Moved namespace FieldGuesser to Type\Guesser
2011-03-19 16:46:03 +01:00
Bernhard Schussek
89215d167d
Merge remote branch 'symfony/master' into experimental
2011-03-19 13:25:41 +01:00
Fabien Potencier
510c30693b
[HttpFoundation] fixed a test
2011-03-19 12:29:23 +01:00
everzet
3fd50ea4e6
[Routing] throw an exception if route config has unsupported keys
2011-03-19 12:54:29 +02:00
Kris Wallsmith
e596931dc8
[DomCrawler] enabled removal of form fields to allow emulating javascript in a functional test
2011-03-18 09:39:08 -07:00
Bernhard Schussek
6bc79a1a12
[Form] Renamed different kinds of data transformers within a field for better clarity
2011-03-18 16:59:34 +01:00
Bernhard Schussek
2a1e394352
[Form] Renamed field configs to types. Everywhere else, we are referring to the name of the type as 'type' now (was 'identifier')
2011-03-18 16:20:00 +01:00
Bernhard Schussek
0b929ee342
[Form] Renamed ValueTransformers to DataTransformers to fit with DataMapper and DataValidator
2011-03-18 16:01:06 +01:00
Bernhard Schussek
97d0183d84
[Form] Moved properties propertyPath, modifyByReference, validationGroups and virtual to generic attributes because they are specific to the used data validator/mapper implementations
2011-03-18 15:26:02 +01:00
Bernhard Schussek
700c96e7fa
[Form] Moved FieldFactoryTest to FormFactoryTest and fixed it
2011-03-18 14:37:54 +01:00
Bernhard Schussek
9caaf0f3a3
[Form] Introduced FieldBuilder for field/form creation and made Field/Form mostly immutable
2011-03-18 12:50:26 +01:00
Fabien Potencier
f0c558592c
Merge remote branch 'everzet/console-formatter-refactoring'
2011-03-18 11:58:05 +01:00
Fabien Potencier
3627eee3c6
Merge remote branch 'vicb/cfg_rebase'
...
* vicb/cfg_rebase:
[Config] Ability to add and override node types without having to subclass NodeBuilder
[DoctrineBundle] Fix some typos
[SwiftMailerBundle] Fix a merge issue in the configuration
Tweak PHPDocs in the extension configuration files
[Config] Component refactoring
2011-03-18 11:41:43 +01:00
Bernhard Schussek
3f70f89339
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
src/Symfony/Component/HttpFoundation/File/UploadedFile.php
2011-03-18 10:39:40 +01:00
Fabien Potencier
136b23ead4
[EventDispatcher] refactored the code
...
* The array returned by getListeners() now removes the listener hash as the key (as this is an implementation detail)
* The sort method now guarantees that a listener registered before another will stay in the same order even for the same priority (for BC)
* Made various optimizations
2011-03-18 09:01:22 +01:00
Fabien Potencier
69d324eca8
[EventDispatcher] added EventDispatcher::removeSubscriber()
2011-03-18 09:00:58 +01:00
Fabien Potencier
9e88fc4e66
Merge remote branch 'kriswallsmith/kernel/uploaded-file-for-test'
2011-03-18 08:02:16 +01:00
Victor Berchet
9fd7d05ecf
[Config] Ability to add and override node types without having to subclass NodeBuilder
2011-03-18 00:32:35 +01:00
Kris Wallsmith
0a229947a6
[Form] updated tests for changes in HttpFoundation
2011-03-17 16:09:12 -07:00
Kris Wallsmith
ab3b8ac364
[HttpFoundation] cleaned up comments and coding standards, added better exception messages when filesystem functions throw errors, added "moved" arg to UploadedFile constructor, added FileNotFoundException to UploadedFile per the parent constructor
2011-03-17 16:07:53 -07:00
Kris Wallsmith
69609257ac
[DomCrawler] updated upload logic to better emulate a real upload by copying the source file to the temp directory
2011-03-17 16:06:47 -07:00
Bernhard Schussek
a51321c264
[Form] Moved validation logic to ValidationListener
2011-03-17 21:47:12 +01:00
Bernhard Schussek
0799662361
[Form] Extracted data mapping logic from Form into ObjectMapperListener
2011-03-17 21:23:59 +01:00
Fabien Potencier
6c8e71c8e7
renamed filterCore* to onCore*
...
The onCore* events are fired at some pre-defined points during the
handling of a request. At this is more important than the fact
that you can change things from the event.
2011-03-17 17:01:59 +01:00
ever.zet
8b55c239a2
[Console] updated output tests after formatter adding
2011-03-17 17:53:28 +02:00
ever.zet
4fe2efd49e
[Console] implemented output formatter to decorate and format output messages
2011-03-17 17:51:49 +02:00
ever.zet
e5700b817b
[Console] implemented output formatter style class for defining custom styles
2011-03-17 17:51:25 +02:00
Victor Berchet
1e0ed22c55
[Config] Component refactoring
...
The Config component API have changed and the extension configuration files must be updated accordingly:
1. Array nodes must enclosed their children definition in ->children() ... ->end() calls:
Before:
$treeBuilder->root('zend', 'array')
->arrayNode('logger')
->scalarNode('priority')->defaultValue('INFO')->end()
->booleanNode('log_errors')->defaultFalse()->end()
->end();
After:
$treeBuilder->root('zend', 'array')
->children()
->arrayNode('logger')
->children()
->scalarNode('priority')->defaultValue('INFO')->end()
->booleanNode('log_errors')->defaultFalse()->end()
->end()
->end()
->end();
2. The 'builder' method (in NodeBuilder) has been dropped in favor of an 'append' method (in ArrayNodeDefinition)
Before:
$treeBuilder->root('doctrine', 'array')
->arrayNode('dbal')
->builder($this->getDbalConnectionsNode())
->end();
After:
$treeBuilder->root('doctrine', 'array')
->children()
->arrayNode('dbal')
->append($this->getDbalConnectionsNode())
->end()
->end();
3. The root of a TreeBuilder is now an NodeDefinition (and most probably an ArrayNodeDefinition):
Before:
$root = $treeBuilder->root('doctrine', 'array');
$this->addDbalSection($root);
public function addDbalSection(NodeBuilder $node)
{
...
}
After:
$root = $treeBuilder->root('doctrine', 'array');
$this->addDbalSection($root);
public function addDbalSection(ArrayNodeDefinition $node)
{
...
}
4. The NodeBuilder API has changed (this is seldom used):
Before:
$node = new NodeBuilder('connections', 'array');
After:
The recommended way is to use a tree builder:
$treeBuilder = new TreeBuilder();
$node = $treeBuilder->root('connections', 'array');
An other way would be:
$builder = new NodeBuilder();
$node = $builder->node('connections', 'array');
Some notes:
- Tree root nodes should most always be array nodes, so this as been made the default:
$treeBuilder->root('doctrine', 'array') is equivalent to $treeBuilder->root('doctrine')
- There could be more than one ->children() ... ->end() sections. This could help with the readability:
$treeBuilder->root('doctrine')
->children()
->scalarNode('default_connection')->end()
->end()
->fixXmlConfig('type')
->children()
->arrayNode('types')
....
->end()
->end()
2011-03-17 16:26:15 +01:00
Fabien Potencier
1219b98ec5
renamed some methods in the event dispatcher
2011-03-17 15:27:42 +01:00
Bernhard Schussek
7a63b840f3
[Form] Renamed submit() to bind()
2011-03-17 14:55:26 +01:00
Bernhard Schussek
5bfd02bcd0
[Form] Renamed bind() to bindRequest(). It is now semantically the same as in symfony1 again
2011-03-17 14:51:22 +01:00
Bernhard Schussek
ffa5bd264a
[Form] Moved logic of Field::isMultipart() to rendering layer
2011-03-17 14:40:34 +01:00
Bernhard Schussek
50ce0d53a0
[Form] Removed FieldInterface::getDisplayedData(). Use getTransformedData() instead
2011-03-17 14:28:59 +01:00
Bernhard Schussek
f0d841ef8c
[Form] Fixed DateTimeToArrayTransformer when transforming empty values and the option 'fields' is set
2011-03-17 14:27:10 +01:00
Bernhard Schussek
1c9a00733f
Merge branch 'event-manager' into experimental
...
Conflicts:
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
2011-03-17 13:38:24 +01:00
Bernhard Schussek
466f1b99c5
[Security] Fixed method names in the Firewall listeners
2011-03-17 13:24:23 +01:00
Bernhard Schussek
5f14d8d6aa
Merge remote branch 'symfony/master' into event-manager
...
Conflicts:
src/Symfony/Bundle/AsseticBundle/CacheWarmer/AssetWriterCacheWarmer.php
src/Symfony/Bundle/AsseticBundle/Tests/CacheWarmer/AssetWriterCacheWarmerTest.php
src/Symfony/Bundle/FrameworkBundle/Profiler/ProfilerListener.php
src/Symfony/Bundle/FrameworkBundle/Resources/config/profiling.xml
src/Symfony/Component/HttpKernel/HttpKernel.php
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
2011-03-17 12:34:12 +01:00
Fabien Potencier
c5c8e57754
[Locale] updated the tests so that we can be green again (previous version always add 2 skipped tests)
2011-03-17 12:20:37 +01:00
Bernhard Schussek
73464f411e
Merge remote branch 'Infranology/intl-stub' into intl-stub
2011-03-17 11:20:52 +01:00
Bernhard Schussek
f966c30c8b
Merge remote branch 'symfony/master' into intl-stub
2011-03-17 11:20:25 +01:00
Bernhard Schussek
cb283d3783
[Form] Renamed 'key' to 'name'. Removed setKey() totally.
2011-03-17 11:03:10 +01:00
Fabien Potencier
7edb1a5f13
fixed previous commit
2011-03-16 21:39:30 +01:00
Bernhard Schussek
e85aab2dc1
[Form] Changed form to use the new EventDispatcher implementation
2011-03-16 18:20:13 +01:00
Fabien Potencier
005287ac88
Merge remote branch 'kriswallsmith/templating/asset-packages'
2011-03-16 16:18:45 +01:00
Bernhard Schussek
fb8efaba67
[Form] Fixed a couple of failing tests
2011-03-16 16:13:06 +01:00
Fabien Potencier
bf938cc885
Merge remote branch 'rrehbeindoi/master'
2011-03-16 16:03:14 +01:00
Bernhard Schussek
f64f55002b
Merge remote branch 'symfony/master' into experimental
...
Conflicts:
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
2011-03-16 16:00:54 +01:00
Fabien Potencier
8cc37eaa23
[HttpKernel] fixed CS
2011-03-16 15:16:21 +01:00
Fabien Potencier
f9d2f69ca8
Merge remote branch 'janschumann/mysql_profiler_storage'
2011-03-16 15:09:07 +01:00
Ray
73f70ae53c
Merge remote branch 'symfony/master'
2011-03-16 09:00:13 -05:00
Ray
e83629139c
Added matching test to mirror the xml file loader test
2011-03-16 08:56:26 -05:00
Fabien Potencier
ac49289451
Merge remote branch 'rrehbeindoi/master'
2011-03-16 14:44:44 +01:00
Kris Wallsmith
a5d8770a54
[HttpFoundation] fixed ApacheRequest, added tests
2011-03-16 06:13:01 -07:00
Ray
c2908cdaa0
Allow collection's internal keys to be mixed case
2011-03-15 09:35:40 -05:00
Jan Schumann
d1ebc8da9f
- Added abstract PDO profiler storage, updated sqlite storage and added a mysql storage.
...
- Updated profiler config in framework bundle
2011-03-15 14:08:43 +01:00
Fabien Potencier
e5fad94482
[HttpKernel] fixed a unit test
2011-03-15 13:43:45 +01:00
Johannes M. Schmitt
98216a9af2
[DependencyInjection] refactored some more exceptions
2011-03-14 21:14:49 +01:00
Johannes M. Schmitt
4539b47522
[Security] small performance optimization
2011-03-14 17:41:33 +01:00
Eriksen Costa
157f001253
Merge remote branch 'bschussek/intl-stub' into intl-stub
2011-03-13 21:50:25 -03:00
Eriksen Costa
9c6ccd8290
[Locale] replaced symfony-project.org by symfony.com
2011-03-13 21:22:11 -03:00
Eriksen Costa
50aee60e9b
Merge branch 'master' into intl-stub
2011-03-13 21:20:57 -03:00
Bernhard Schussek
0bf566310c
Merge branch 'event-manager' into experimental
...
Conflicts:
src/Symfony/Component/Form/BirthdayField.php
src/Symfony/Component/Form/CheckboxField.php
src/Symfony/Component/Form/ChoiceField.php
src/Symfony/Component/Form/ChoiceList/TimeZoneChoiceList.php
src/Symfony/Component/Form/CollectionField.php
src/Symfony/Component/Form/DateField.php
src/Symfony/Component/Form/DateTimeField.php
src/Symfony/Component/Form/EntityChoiceField.php
src/Symfony/Component/Form/Events.php
src/Symfony/Component/Form/FieldFactory/FieldFactory.php
src/Symfony/Component/Form/FieldFactory/FieldFactoryInterface.php
src/Symfony/Component/Form/FileField.php
src/Symfony/Component/Form/Filters.php
src/Symfony/Component/Form/FormContext.php
src/Symfony/Component/Form/FormContextInterface.php
src/Symfony/Component/Form/FormFactoryInterface.php
src/Symfony/Component/Form/HybridField.php
src/Symfony/Component/Form/IntegerField.php
src/Symfony/Component/Form/LanguageField.php
src/Symfony/Component/Form/LocaleField.php
src/Symfony/Component/Form/MoneyField.php
src/Symfony/Component/Form/NumberField.php
src/Symfony/Component/Form/PasswordField.php
src/Symfony/Component/Form/PercentField.php
src/Symfony/Component/Form/RepeatedField.php
src/Symfony/Component/Form/TextField.php
src/Symfony/Component/Form/TimeField.php
src/Symfony/Component/Form/ToggleField.php
src/Symfony/Component/Form/UrlField.php
src/Symfony/Component/HttpFoundation/File/UploadedFile.php
tests/Symfony/Tests/Component/Form/FileFieldTest.php
tests/Symfony/Tests/Component/Form/FormContextTest.php
tests/Symfony/Tests/Component/Form/HiddenFieldTest.php
2011-03-13 21:04:24 +01:00
Bernhard Schussek
06c682b4fb
Switched from Doctrine's EventManager implementation to the EventManager clone in Symfony2 (now called EventDispatcher again)
2011-03-13 19:49:10 +01:00
Bernhard Schussek
699e046b4f
[EventDispatcher] Replaced EventDispatcher by Doctrine's implementation
2011-03-13 19:15:38 +01:00
Bernhard Schussek
25931caeab
Merge remote branch 'symfony/master' into event-manager
...
Conflicts:
src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventManager.php
src/Symfony/Bundle/WebProfilerBundle/WebDebugToolbarListener.php
src/Symfony/Component/Security/Http/Firewall.php
src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php
src/Symfony/Component/Security/Http/Firewall/AccessListener.php
src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/ChannelListener.php
src/Symfony/Component/Security/Http/Firewall/ContextListener.php
src/Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener.php
src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php
src/Symfony/Component/Security/Http/Firewall/ListenerInterface.php
src/Symfony/Component/Security/Http/Firewall/LogoutListener.php
src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php
src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php
tests/Symfony/Tests/Component/Security/Http/Firewall/RememberMeListenerTest.php
2011-03-13 19:15:25 +01:00
Artur Kotyrba
3f73a748a9
[Routing] Fixed compiling routes with empty string or 0 as default parameter value.
2011-03-13 18:13:41 +01:00
Pascal Borreli
fb33358d20
[Security] Fixed test
2011-03-12 16:17:42 -08:00
Fabien Potencier
411a382d80
[Serializer] fixed XmlEncoder for single char tags
2011-03-12 15:23:30 +01:00
Johannes Schmitt
70867f06e9
re-added a __toString method for debugging purposes
2011-03-12 13:24:57 +01:00
ever.zet
5ec8f47d7c
if proper style not found, then this is a tag - no need in Exception
2011-03-12 11:55:44 +02:00
ever.zet
9cc3e1bd87
added ability to clear TestConsole
2011-03-12 11:55:01 +02:00
Fabien Potencier
bc6ffeef83
[HttpFoundation] fixed flash management
2011-03-11 20:23:17 +01:00
Fabien Potencier
a1fcbf4d5f
Merge remote branch 'kriswallsmith/dic/false-circular-ref-fix'
...
* kriswallsmith/dic/false-circular-ref-fix:
[DependencyInjection] fixed false positive when detecting circular references if a service throws an exception during creation
2011-03-11 19:58:54 +01:00
Fabien Potencier
cedf588e98
Revert "Merge remote branch 'kriswallsmith/dic/lazy-replace-ext-params'"
...
This reverts commit 32ac2e8709
, reversing
changes made to 6e81c28ca4
.
2011-03-11 15:35:09 +01:00
Fabien Potencier
f321fadad6
[DependencyInjection] moved most protected things to private
2011-03-11 14:50:46 +01:00
Fabien Potencier
a8d05746ff
Merge remote branch 'schmittjoh/propertyAnnotations'
...
* schmittjoh/propertyAnnotations:
[DependencyInjection] added some tests
[DependencyInjection] adds property injection
2011-03-11 13:12:12 +01:00
Fabien Potencier
ad36ce7b38
Merge remote branch 'schmittjoh/security'
...
* schmittjoh/security:
[Security] fixed some tests
[SecurityBundle] removed the option to declare access_control rules based on request attributes
[Security] removed core.security event
[Security] refactored remember-me code
2011-03-11 13:08:37 +01:00
Fabien Potencier
b940cc6f40
moved most protected to private in the Console component
2011-03-11 12:53:42 +01:00
Johannes Schmitt
97125269d2
[Security] fixed some tests
2011-03-11 12:50:52 +01:00
Fabien Potencier
c2e9dd27b2
[Console] fixed synopsis when an error occurs
2011-03-11 11:51:05 +01:00