Bernhard Schussek
770d403a52
[Form] Improved error mapping in DelegatingValidator
2011-03-25 00:57:35 +01:00
Bernhard Schussek
d2b07058f4
[Form] CSRF token is now only validated for root form
2011-03-25 00:19:00 +01:00
Bernhard Schussek
4372bd5dc8
[Form] Fixed: Bubbling errors are caught correctly
2011-03-25 00:18:58 +01:00
Bernhard Schussek
d84d167b71
[Form] Fixed display of enctype for file fields in Twig theme
2011-03-25 00:16:30 +01:00
Bernhard Schussek
66ba0c3a73
[Form] Fixed: vars are initialized when ThemeRenderer::getVars() is accessed
2011-03-25 00:16:23 +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
Bernhard Schussek
1ff6906608
[Form] Simplified ArrayTypeLoader and used it as base class of DefaultTypeLoader
2011-03-24 22:30:49 +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
15d5259eb8
[Form] Forms now remember the types used during their construction
2011-03-24 16:16:31 +01:00
Bernhard Schussek
0b4c3c0cb8
[Form] Fixed coding conventions
2011-03-24 15:26: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
e232218eed
[Console] fixed PHP notice
2011-03-24 13:30:27 +01:00
Alexey Popkov
7423f0bf50
[SecurityBundle] fixed missing argument EventDisplatcher in RememberMe service
2011-03-24 14:00:16 +03: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
0f231c33e5
[EventDispatcher] tagged the guaranteed BC API
2011-03-24 10:06:26 +01:00
Fabien Potencier
c60ee9fef1
[Finder] tagged the guaranteed BC API
2011-03-24 10:05:16 +01:00
Fabien Potencier
faf72269dd
Merge remote branch 'aurelijus/filefield_original_name'
...
* aurelijus/filefield_original_name:
get originalName before move call
2011-03-24 10:01:03 +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
e515913747
[DomCrawler] tagged the guaranteed BC API
2011-03-24 10:00:10 +01:00
Fabien Potencier
9206af1773
[Console] tagged the guaranteed BC API
2011-03-24 09:39:53 +01:00
Aurelijus
2ee47f3c69
get originalName before move call
2011-03-24 10:39:42 +02:00
Fabien Potencier
ff3c66753f
[BrowserKit] tagged the guaranteed BC API
2011-03-24 09:25:46 +01:00
Fabien Potencier
7280da8af2
[Process] fixed previous commit
2011-03-24 09:15:33 +01:00
Fabien Potencier
b2a8e35900
[Process] tagged the guaranteed BC API
2011-03-24 09:13:58 +01:00
Fabien Potencier
639d93cbbf
[Process] moved protected to private
2011-03-24 09:10:42 +01:00
Fabien Potencier
34cf511a1d
[Translation] tagged the guaranteed BC API
2011-03-24 09:07:52 +01:00
Aurelijus
38318f8f80
removes unwanted characters from goto name
2011-03-24 10:03:59 +02:00
Fabien Potencier
e0469d398d
[Yaml] tagged the guaranteed BC API
2011-03-24 09:02:09 +01:00
Fabien Potencier
8ab59f82db
[CssSelector] tagged thlassLoader]d BC API
2011-03-24 08:44:53 +01:00
Fabien Potencier
f58654c6fd
[CssSelector] tagged the guaranteed BC API
2011-03-24 08:40:47 +01:00
Fabien Potencier
eeca46dea0
[CssSelector] moved protected to private
2011-03-24 08:34:52 +01:00
Bernhard Schussek
9b6722222f
[Form] Improved internal structore of PropertyPathMapper
2011-03-24 00:15:59 +01: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
Bernhard Schussek
f71ae03143
[Form] AbstractType::getParent() returns 'form' by default now
2011-03-23 21:51:50 +01:00
Fabien Potencier
1fb08b6445
[Routing] fixed private method
2011-03-23 21:40:54 +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
1b8dc80215
[HttpKernel] moved from protected to private
2011-03-23 19:47:16 +01:00
Fabien Potencier
e4a3e0c2c7
[Config] moved from protected to private (WIP)
2011-03-23 19:34:00 +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
Fabien Potencier
662a4b3740
removed the status message from HttpException, changed the signature so that most useful arguments are first, fixed many small problems introduced with previous HTTP exception refactoring
...
Quote from HTTP (bis) spec (Part 2 - 5.1.1):
The Reason Phrase exists for the
sole purpose of providing a textual description associated with the
numeric status code, out of deference to earlier Internet application
protocols that were more frequently used with interactive text
clients. A client SHOULD ignore the content of the Reason Phrase.
2011-03-23 16:11:54 +01:00
Bernhard Schussek
9e025440ca
Merge remote branch 'johnwards/configuration' into configurable-merge
2011-03-23 16:05:16 +01:00
Fabien Potencier
abb99e9469
[HttpKernel] changed the abstract BaseHttpException to HttpException to allow the creation of any HTTP exception
2011-03-23 11:12:31 +01:00
Christophe Coevoet
cc036b4f2b
[Security] Removed useless method call
2011-03-23 00:02:57 +01:00
Christophe Coevoet
8b8bb66afe
[Security] Fixed some listeners not updated after the event refactoring
2011-03-22 23:56:46 +01:00
John Wards
85701b65af
[Form] Missing methods from interfaces
2011-03-22 22:20:14 +00:00
John Wards
1a014d130e
[Form] Tests for Renderer Plugins
2011-03-22 22:19:51 +00:00
John Wards
37f12f68da
[Form] The declaration and initialization (constructor) of the variables should be in the same class.
2011-03-22 20:54:15 +00:00
Fabien Potencier
e159c47cc9
[Routing] fixed UrlMatcher when no method requirement is defined
2011-03-22 20:56:55 +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
68011c0dd6
[DependenInjection] fixed CS
2011-03-22 19:47:46 +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
Sven Paulus
eb8491f754
re-add filename based directory filter to the AnnotationDirectoryLoader,
...
now restricting to *.php files and therefore disregarding e.g. SVN metadata
files
2011-03-22 18:23:54 +01:00
Jan Prieser
67aaf5ce91
Fixed PhpDumper isSimpleService and changed test fixtures
2011-03-22 17:01:03 +01:00
John Wards
e54973b5d4
[Form] Refactoring Types to use new DataTransfomer interface
2011-03-22 15:40:52 +00: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
61974adb4f
revert adding filename based filter to the directory resource
2011-03-22 12:14:12 +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
09da126464
[Form] Fixed validation.xml
2011-03-22 01:45:40 +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
7d7c36a178
[Form] More sensible constructor variable order
2011-03-21 21:42:34 +00:00
Bernhard Schussek
87665bc380
[Form] Decoupled FormBuilder from CSRF protection
2011-03-21 22:41:19 +01:00
John Wards
714f2173be
[Form] Coding conventions and use of the new variables
2011-03-21 21:39:59 +00:00
John Wards
3c80bc37df
[Form] Removing use of old class
2011-03-21 21:20:57 +00:00
John Wards
d8287a6dff
Merge remote branch 'bernhard/experimental' into experimental
2011-03-21 21:18:04 +00:00
John Wards
002a22df04
[Form] Refactoring DateTimeToStringTranformer not to use Configuration
2011-03-21 21:16:20 +00:00
Bernhard Schussek
c1abf08d9c
[Form] Implemented error bubbling
2011-03-21 22:13:02 +01:00
Bernhard Schussek
255eda5238
[Form] Renamed RecursiveFieldIterator to RecursiveFormIterator
2011-03-21 21:19:36 +01:00
Bernhard Schussek
3985522b9b
[Form] Removed obsolete classes Error and DataError
2011-03-21 21:19:31 +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
Fabien Potencier
6ace6af537
Merge remote branch 'mvrhov/variousFixes'
2011-03-21 16:57:34 +01:00
Kris Wallsmith
10dc18b28b
[HttpKernel] refactored HTTP exceptions to be more flexible
2011-03-21 05:57:35 -07:00
Kris Wallsmith
b2f5ac8beb
[Routing] refactored URL matching to support 405 Method Not Allowed responses
2011-03-21 05:56:53 -07:00
Johannes M. Schmitt
eb0d772743
[Security/Acl] removed remaining LIMIT clauses
2011-03-21 11:39:05 +01:00
Miha Vrhovnik
25e4193294
removed unused variable
2011-03-21 11:34:06 +01:00
Miha Vrhovnik
496280329b
changing phpdoc parameter to array as all variables are used in foreach
2011-03-21 11:28:38 +01:00
Miha Vrhovnik
33dd0da420
removed unused variables
2011-03-21 11:22:29 +01:00
Miha Vrhovnik
909a6bfc30
$user* was refactored to $accout*
2011-03-21 11:20:21 +01:00
Fabien Potencier
e4a636a885
[FrameworkBundle] refactored the cache:clear command
...
* removed the hack on the Kernel
* removed inheritance from the warmup command
* major cleanup
2011-03-21 11:03:55 +01:00
Miha Vrhovnik
fb814c666b
removed unused and undefined namespace and use statement
2011-03-21 10:45:34 +01:00
Miha Vrhovnik
a491af873b
removed unecessary use statements (ExceptionEvent was also undefined namespace)
2011-03-21 10:41:39 +01:00
Miha Vrhovnik
d1a2681531
fixing undefined class RuntimeException
2011-03-21 10:37:49 +01:00
Miha Vrhovnik
031ffaee6b
fixing undefined class UnsetKeyException
2011-03-21 10:33:27 +01:00
Fabien Potencier
82a5ae669e
[FrameworkBundle] fixed merge problem
2011-03-21 09:43:41 +01:00
Fabien Potencier
45f9c2fbf4
merged francisbesset:cache_clear_command
2011-03-21 09:24:16 +01:00
Johannes M. Schmitt
ede59926a4
Merge branch 'interactive-login-event' of git://github.com/yethee/symfony into security
2011-03-21 09:18:55 +01:00
Bernhard Schussek
acaa9c9058
[Form] Fixed signature of Form::addError()
2011-03-20 15:23:36 +01:00
Bernhard Schussek
6c9ff0a2a3
[Form] Improved naming of data conversion methods in Form and made them private
2011-03-20 15:22:37 +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
b5656f1290
[Form] Renamed ObjectMapper to PropertyPathMapper
2011-03-20 10:29:23 +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
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
a1c3d21d0e
[Form] Added comment
2011-03-19 19:56:18 +01:00
Bernhard Schussek
e9cb19721a
[Form] Optimized code in Form to remove one event listener
2011-03-19 19:53:39 +01:00
Bernhard Schussek
fb2db58801
[Form] Added fluid interface for inline adding of sub-builders to a builder
2011-03-19 19:44:45 +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
Bernhard Schussek
3586268bc2
[Form] Renamed field types. They are now always the name of the type with a 'Type' suffix
2011-03-19 18:31:24 +01:00
Bernhard Schussek
65353bd81e
[Form] Fixed failing choice field tests
2011-03-19 18:22:08 +01:00
Benjamin Eberlei
c05b3c440d
[Form] Add DefaultFormFactory for convenience usage outside of a DIC context.
2011-03-19 18:14:15 +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
Fabien Potencier
a505ff43b5
[Routing] added supported for multiple route annotations for a single controller
2011-03-19 17:40:24 +01:00
Bernhard Schussek
43a24fa931
[Form] Renamed events to match terminology in Field
2011-03-19 16:59:23 +01:00
Bernhard Schussek
0259d4da1e
[Form] Moved namespace DataValidator to Validator
2011-03-19 16:54:07 +01:00
Bernhard Schussek
7f9284105d
[Form] Moved namespace FieldGuesser to Type\Guesser
2011-03-19 16:46:03 +01:00
Benjamin Eberlei
af60ddf8ad
Moved PhpTheme to FrameworkBundle and renamed to PhpEngineTheme
2011-03-19 15:27:39 +01:00
Benjamin Eberlei
32e1a7c8f9
Merge bschussek/experimental into branch forms.
2011-03-19 15:18:52 +01:00
Bernhard Schussek
d2210a2e79
[Form] Removed unused Form::isCsrfTokenValid()
2011-03-19 15:09:11 +01:00
Bernhard Schussek
3e17b26105
[Form] Moved CSRF protection into separate field
2011-03-19 15:06:54 +01:00
Benjamin Eberlei
3e2b8e5f12
Fix some missing use statements and small bugs.
2011-03-19 14:31:25 +01:00
Bernhard Schussek
89215d167d
Merge remote branch 'symfony/master' into experimental
2011-03-19 13:25:41 +01:00
Miha Vrhovnik
e35832ef2d
Fixing failure on forward which was broken by Event refactoring
2011-03-19 13:06:52 +01:00
Amal Raghav
eff6bc8a80
fix to use setException
2011-03-19 17:08:34 +05:30
Fabien Potencier
904cf6145e
Merge remote branch 'everzet/routing-config-errors'
2011-03-19 12:27:38 +01:00
everzet
e4eee05b06
[Routing] tuned exception message
2011-03-19 12:58:31 +02:00
Benjamin Eberlei
bb8c2a9b9d
Rename this to renderer to be able to use it in Php Templating
2011-03-19 11:54:46 +01:00
everzet
3fd50ea4e6
[Routing] throw an exception if route config has unsupported keys
2011-03-19 12:54:29 +02:00
Benjamin Eberlei
d44e2264ba
Merge branch 'experimental' of git://github.com/bschussek/symfony into forms
2011-03-19 09:36:30 +01:00
ornicar
7440db7244
[HttpFoundation] Make sure Request::getLanguages always returns an array
2011-03-19 01:34:54 -07:00
Deni
5e40695272
[Security] Added a type hint.
2011-03-19 01:32:33 +03:00
Fabien Potencier
cdfc731ff5
Merge remote branch 'schmittjoh/security'
2011-03-18 21:07:11 +01:00
Fabien Potencier
f990bf96ee
Merge remote branch 'ornicar/removeNamespaceInSwitchUserListener'
2011-03-18 20:57:48 +01:00
ornicar
5e75c66a66
[Security] Remove duplicated namespace in SwitchUserListener
2011-03-18 12:30:09 -07:00
Johannes Schmitt
7e1c4d5748
[Security] removed un-needed event parameter from many interfaces
2011-03-18 20:20:19 +01:00
Fabien Potencier
5658d224fd
Merge remote branch 'hhamon/security_token_fix'
2011-03-18 19:32:28 +01:00
Fabien Potencier
263c32aff0
Merge remote branch 'schmittjoh/security'
2011-03-18 19:31:57 +01:00
Fabien Potencier
b7806cdb8d
Merge remote branch 'kriswallsmith/http/html-errors'
2011-03-18 19:20:16 +01:00
Kris Wallsmith
73db141ce6
[HttpFoundation] stripped tags from native error messages in case html_errors is on
2011-03-18 11:11:42 -07:00
Fabien Potencier
bd8d2b829f
[EventDispatcher] changed listener storage to use SplObjectStorage to avoid collisions
2011-03-18 18:48:26 +01:00
hhamon
681a3b7ff0
[Security] removed import of the UserInterface interface as it is unused in the file and fix some phpdoc.
2011-03-18 18:44:04 +01:00
Johannes Schmitt
a56dbec6d8
[Security] removed un-needed event parameter from many interfaces
2011-03-18 18:26:55 +01: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
b66b8326a8
[Form] Fixed undefined variable in DefaultRenderer
2011-03-18 17:03:12 +01: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
1c85daa56b
[Form] Split FieldBuilder into FieldBuilder and FormBuilder to make creation of classes deterministic
2011-03-18 16:34:54 +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
f86ecec403
[Form] Extracted data validation logic into DataValidatorInterface
2011-03-18 15:58:22 +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
4cb76c0045
[Form] Moved error distribution logic to validation listener
2011-03-18 13:07:06 +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
c5a6c8432f
Merge remote branch 'vicb/templating'
2011-03-18 11:54:20 +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
Victor Berchet
cead49fa2b
[Kernel] Fixed a typo
2011-03-18 11:17:56 +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
10a02ff7fa
[EventDispatcher] reverted to the old event dispatcher way of storing listeners
2011-03-18 08:09:42 +01:00
Fabien Potencier
9e88fc4e66
Merge remote branch 'kriswallsmith/kernel/uploaded-file-for-test'
2011-03-18 08:02:16 +01:00
Fabien Potencier
e286adf173
[Security] fixed typos
2011-03-18 07:58:51 +01:00
Fabien Potencier
9de0a3872b
Merge branch 'events'
...
* events:
[FrameworkBundle] fixed the traceable event manager
[EventDispatcher] made order deterministic (first registered one stay first) -- this makes the new system more compatible with the old one
[FrameworkBundle] fixed class loading order
fixed various bugs introduced during the event system migration
renamed filterCore* to onCore*
fixed CS
fixed phpdoc
renamed some methods in the event dispatcher
[HttpKernel] Removed unused onCoreSecurity event
[Security] Fixed method names in the Firewall listeners
[HttpKernel] Added more code documentation to the HttpKernel events
[Security] Fixed method calls on EventDispatcher
[FrameworkBundle] Removed EventSubscriber support for DI tags because it currently cannot be implemented
[Security] Fixed calls to EventDispatcher::dispatchEvent()
Switched from Doctrine's EventManager implementation to the EventManager clone in Symfony2 (now called EventDispatcher again)
[EventDispatcher] Replaced EventDispatcher by Doctrine's implementation
Renamed EventArgs classes and adapted remaining code to EventManager
Replaced EventDispatcher by Doctrine's EventManager implementation
2011-03-18 07:52:05 +01:00
Fabien Potencier
59ac6313ad
[EventDispatcher] made order deterministic (first registered one stay first) -- this makes the new system more compatible with the old one
2011-03-18 07:36:02 +01:00
Fabien Potencier
1af43a1562
fixed various bugs introduced during the event system migration
2011-03-18 07:35:59 +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
a9af77a035
[HttpKernel] fixed file uploads in functional tests
2011-03-17 16:09:31 -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
Benjamin Eberlei
76b0041d1b
[Form] Implemented first PhpTheme attempt
2011-03-17 22:47:19 +01: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
Benjamin Eberlei
3bc825bbd4
Merge branch 'experimental' of git://github.com/bschussek/symfony into forms
2011-03-17 19:05:59 +01:00
Benjamin Eberlei
85b61fe1e2
First attempt of PhpTheme.
2011-03-17 19:05:48 +01:00
ever.zet
3e7fa82f34
[Console] privatized protected variables, cuz they now have getters/setters
2011-03-17 18:51:37 +02:00
ever.zet
aa084dbc45
[Console] moved whole constructor definitions in one line
2011-03-17 18:51:01 +02: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
8b885a991c
[Console] updated console and stream outputs to support new output formatter
2011-03-17 17:53:46 +02:00
ever.zet
644cf612b3
[Console] updated console output to support new output formatter and styles
2011-03-17 17:52:36 +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
ever.zet
65681cdc85
[Console] added output formatter interfaces
2011-03-17 17:50:42 +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
9d0b6f0012
fixed CS
2011-03-17 16:09:25 +01:00
Fabien Potencier
794b3b8e86
fixed phpdoc
2011-03-17 16:02:36 +01:00
Fabien Potencier
1219b98ec5
renamed some methods in the event dispatcher
2011-03-17 15:27:42 +01:00
Bernhard Schussek
d00f1fa205
[Form] Removed unused method Form::deepArrayUnion()
2011-03-17 15:22:48 +01:00
Bernhard Schussek
8e41cc66fe
[Form] Moved form logic to event listeners
2011-03-17 15:22:10 +01:00
Jan Prieser
60c1159b2e
[DependecyInjection] fixed typo. Using InterfaceInjectors broke methodCalls.
2011-03-17 15:03:16 +01:00
Fabien Potencier
663b0a97ac
Merge remote branch 'bschussek/event-manager'
2011-03-17 15:02:26 +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
f2f78890de
[Form] Removed deprecated method preprocessData()
2011-03-17 14:41:26 +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
eba602ed1b
[Form] Removed dependency from renderer plugins on fields. The field instance is now passed to setUp() instead.
2011-03-17 13:37:27 +01:00
Bernhard Schussek
c02f4220f2
[HttpKernel] Removed unused onCoreSecurity event
2011-03-17 13:24:38 +01:00
Bernhard Schussek
466f1b99c5
[Security] Fixed method names in the Firewall listeners
2011-03-17 13:24:23 +01:00
Bernhard Schussek
ab57e5c611
[HttpKernel] Added more code documentation to the HttpKernel events
2011-03-17 13:06:32 +01:00
Bernhard Schussek
ffdc879624
[Security] Fixed method calls on EventDispatcher
2011-03-17 12:34:30 +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
d5396f64de
[HttpFoundation] fixed a small bug on Windows
2011-03-17 12:28:29 +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
Bernhard Schussek
caa49aa841
[Form] Moved trimming logic to listener
2011-03-17 10:52:23 +01:00
Fabien Potencier
e8b0b488cb
[HttpKernel] moved exception management logic to its own method
2011-03-17 09:16:53 +01:00
Fabien Potencier
14903ce915
[HttpKernel] removed the need to call getRootDir() more than once
2011-03-16 21:50:24 +01:00
Fabien Potencier
a6411cb712
[HttpKernel] fixed phpdoc
2011-03-16 21:39:30 +01:00
Fabien Potencier
4da43df963
merged vicb/kernel
2011-03-16 21:30:23 +01:00
Fabien Potencier
f48512cd54
[HttpKernel] renamed default profiler table to sf_profiler_data
2011-03-16 20:47:50 +01:00
Fabien Potencier
e6ebf4da4c
fixed small bug in sub-request profiling
2011-03-16 19:33:55 +01:00
Bernhard Schussek
e85aab2dc1
[Form] Changed form to use the new EventDispatcher implementation
2011-03-16 18:20:13 +01:00
Fabien Potencier
ad3b7e912d
merged noelg/profiler
2011-03-16 16:44:44 +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
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
Fabien Potencier
ae7a2df104
fixed CS
2011-03-16 14:45:34 +01:00
Fabien Potencier
ac49289451
Merge remote branch 'rrehbeindoi/master'
2011-03-16 14:44:44 +01:00
Fabien Potencier
2a6e299d52
Merge remote branch 'kriswallsmith/http/apache-request'
2011-03-16 14:31:16 +01:00
Kris Wallsmith
a5d8770a54
[HttpFoundation] fixed ApacheRequest, added tests
2011-03-16 06:13:01 -07:00
Fabien Potencier
e0df94cb8b
[Config] added the possibility to use a Closure for default values
2011-03-16 09:30:51 +01:00
max
e2542962df
reinitialize array so arguments dont stack up
2011-03-15 12:08:13 -07:00
Ray
c2908cdaa0
Allow collection's internal keys to be mixed case
2011-03-15 09:35:40 -05:00
Jan Schumann
c7cde09d1c
fixed coding standard
2011-03-15 14:16:19 +01:00
Jan Schumann
bbfb1ffb53
fixed coding standard
2011-03-15 14:08:43 +01: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
Fabien Potencier
18de62ccb1
Merge remote branch 'schmittjoh/security'
2011-03-15 13:39:34 +01:00
Fabien Potencier
50e463977b
Merge remote branch 'vicb/profiler_again'
2011-03-15 13:37:52 +01:00
Fabien Potencier
b6528c3ea6
Merge remote branch 'hason/container_class'
2011-03-15 11:41:05 +01:00
Martin Hason
ba9653d99a
[HttpKernel] optimized getContainerLoader
2011-03-15 11:00:45 +01:00
Martin Hason
cef70893df
[HttpKernel], [FrameworkBundle] added method getContainerClass and parameter kernel.container_class
2011-03-15 09:16:02 +01:00
Johannes M. Schmitt
98216a9af2
[DependencyInjection] refactored some more exceptions
2011-03-14 21:14:49 +01:00
Fabien Potencier
14d58d97bc
[ClassLoader] made a small change to be consistent with the previous change
2011-03-14 18:46:05 +01:00
Fabien Potencier
f4e4a2aa1b
refactored ConfigCache and optimized container:debug task
2011-03-14 18:37:25 +01:00
Fabien Potencier
58bf229856
Merge remote branch 'schmittjoh/security'
2011-03-14 17:51:37 +01:00
Johannes M. Schmitt
a1fb717074
[DependencyInjection] loader fix
2011-03-14 17:45:27 +01:00
Johannes M. Schmitt
4539b47522
[Security] small performance optimization
2011-03-14 17:41:33 +01:00
Victor Berchet
8128300baa
[WebProfilerBundle] Revert the support for a status in data collectors
2011-03-14 17:24:11 +01:00
Fabien Potencier
539e0e4870
Merge remote branch 'mweimerskirch/master'
2011-03-14 14:38:00 +01:00
Fabien Potencier
3e389f8666
Merge remote branch 'vicb/nitpicking'
2011-03-14 14:02:40 +01:00
Fabien Potencier
f0a6ed2e54
[Routing] fixed CS
2011-03-14 13:54:48 +01:00
Fabien Potencier
84172c4839
Merge remote branch 'xdecock/Performance'
2011-03-14 13:48:37 +01:00
Fabien Potencier
ef87ca3d75
Merge remote branch 'udat/router/empty-string-as-default-parameter-value'
2011-03-14 13:43:59 +01:00
Fabien Potencier
cf2bffd760
Merge remote branch 'schmittjoh/security'
2011-03-14 12:59:04 +01:00
Fabien Potencier
49e3494560
[Console] fixed typo
2011-03-14 12:56:59 +01:00
Eriksen Costa
9a9a11b8f5
[Locale] fixed some emails
2011-03-13 22:06:29 -03:00
Eriksen Costa
157f001253
Merge remote branch 'bschussek/intl-stub' into intl-stub
2011-03-13 21:50:25 -03:00
Eriksen Costa
8f08bccaae
[Locale] fixed some emails
2011-03-13 21:46:28 -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
932f3b1f06
[Security] Fixed calls to EventDispatcher::dispatchEvent()
2011-03-13 21:30:50 +01: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
Johannes M. Schmitt
e624e27675
[DependencyInjection] refactored some exceptions
2011-03-13 20:35:15 +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
Johannes M. Schmitt
76573f1ab2
[Security] added some finals, some visibility changes
2011-03-13 19:40:12 +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
Victor Berchet
36d51d7bbd
[WebProfilerBundle] Config panel
...
Split the main Key / Value table in different sections.
Add a list of active bundles.
2011-03-13 16:25:16 +01:00
Victor Berchet
b04a647c65
[WebProfilerBundle] Create a configuration panel
2011-03-13 15:50:44 +01:00
Victor Berchet
f752dd34a0
[Profiler] Profilers now return a status which is used for visual feedback
2011-03-13 15:50:44 +01:00
Fabien Potencier
843c449c73
Merge remote branch 'everzet/crawler-privatisation-fixes'
...
* everzet/crawler-privatisation-fixes:
[DomCrawler] moved private methods under public ones (readability)
2011-03-13 09:26:41 +01:00
Fabien Potencier
411a382d80
[Serializer] fixed XmlEncoder for single char tags
2011-03-12 15:23:30 +01:00
ever.zet
160c4b8702
[DomCrawler] moved private methods under public ones (readability)
2011-03-12 14:46:40 +02:00
Johannes Schmitt
70867f06e9
re-added a __toString method for debugging purposes
2011-03-12 13:24:57 +01:00
Klaas Naaijkens
02cb362ae6
use username instead of token object in logging
2011-03-12 13:24:57 +01:00
Fabien Potencier
dcc1948fb6
Merge remote branch 'everzet/console-privatisation-errors'
...
* everzet/console-privatisation-errors:
if we moved definition under private area, than we need to use only public API for that, to be able to redefine it is subclasses
start => finish, begin => end. Mixing them is a bad choice.
ability to define custom regex's for style placeholders
we need ability to get style parameters same way we set them with setStyle
2011-03-12 13:10:09 +01:00
ever.zet
dab8e5888f
if we moved definition under private area, than we need to use only public API for that, to be able to redefine it is subclasses
2011-03-12 13:59:51 +02:00
ever.zet
d4d8576f93
start => finish, begin => end. Mixing them is a bad choice.
2011-03-12 13:57:04 +02:00
ever.zet
a809453416
ability to define custom regex's for style placeholders
...
sometimes, developers like me want to redefine style placeholders
in their applications. From this patch, they can acchieve this from
simple get...Regex() method redefine.
2011-03-12 13:54:35 +02:00
ever.zet
49b968df67
we need ability to get style parameters same way we set them with setStyle
...
from last privatisation update $styles now private. So,
user can set style with public setter (setStyle), but can't
get this value later, which is very stupid behavior!
2011-03-12 13:49:06 +02:00
Fabien Potencier
9ec4f8a8a9
Merge remote branch 'kriswallsmith/classloader/optimizations'
...
* kriswallsmith/classloader/optimizations:
[ClassLoader] added an apc class loader
[ClassLoader] created protected findFile() method to allow creating a cache layer via inheritance
[ClassLoader] added a check before trimming the leading \
2011-03-12 12:39:42 +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
Francis Besset
bb7986e221
[FrameworkBundle] Added cache:clear command with warmup option
2011-03-11 23:35:48 +01:00
Kris Wallsmith
441a154203
[ClassLoader] added an apc class loader
2011-03-11 12:32:49 -08:00
Kris Wallsmith
757e4ea4d6
[ClassLoader] created protected findFile() method to allow creating a cache layer via inheritance
2011-03-11 12:32:49 -08:00
Kris Wallsmith
dcffadb6c4
[ClassLoader] added a check before trimming the leading \
2011-03-11 12:25:45 -08: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
c8c5720fa1
[DomCrawler] moved protected to private
2011-03-11 15:13:33 +01:00
Fabien Potencier
f321fadad6
[DependencyInjection] moved most protected things to private
2011-03-11 14:50:46 +01:00
Fabien Potencier
9dadcff13e
[DependencyInjection] removed obsolete code
2011-03-11 14:36:44 +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
Fabien Potencier
edb620122a
fixed some emails
2011-03-11 11:07:11 +01:00
Fabien Potencier
32ac2e8709
Merge remote branch 'kriswallsmith/dic/lazy-replace-ext-params'
...
* kriswallsmith/dic/lazy-replace-ext-params:
[DependencyInjection] added test for lazy param replacement
Removed replacement of parameter placeholders at load time since they're now replaced at compile time. Extensions should be written to expect parameter placeholders.
2011-03-11 10:41:22 +01:00
Fabien Potencier
6e81c28ca4
[Routing] fixed typo
2011-03-11 10:40:38 +01:00
Amal Raghav
517735e581
fix for ignoring abstract definition
2011-03-11 10:36:48 +01:00
Xavier De Cock
d91ea24b3e
[Performance] Routing Generator, avoid array_merge in generated classes
2011-03-11 10:15:18 +01:00
Victor Berchet
61be2b7986
[Routing] XMLFileLoader small optimization
2011-03-11 09:47:46 +01:00
Johannes Schmitt
d8022e34eb
[Security] removed core.security event
2011-03-11 01:43:22 +01:00
Johannes M. Schmitt
3d97638813
[Security] refactored remember-me code
2011-03-11 01:19:55 +01:00
Kris Wallsmith
f33cf0ba5d
Removed replacement of parameter placeholders at load time since they're now replaced at compile time. Extensions should be written to expect parameter placeholders.
...
Revert "[DependencyInjection] Allow parameter replacement within extension configurations."
This reverts commit ab7ad4808b
.
Conflicts:
src/Symfony/Component/DependencyInjection/ContainerBuilder.php
2011-03-10 12:59:00 -08:00
Xavier De Cock
ab46d0c62b
Removed comment about array_* removal
2011-03-10 18:35:54 +01:00
Xavier De Cock
865ee54558
Performance improvement on Router to avoid array_*
...
Changes on the Router to avoid array_diff, array_keys and other inneficient array_ functions.
This is a "recommit" to respect Symfony Contribution rules
2011-03-10 18:24:33 +01:00
Johannes M. Schmitt
d9848f38ac
[DependencyInjection] added some tests
2011-03-10 15:31:00 +01:00
Johannes M. Schmitt
a64cc0e3cc
[Security] some more visibility changes
2011-03-10 10:25:33 +01:00
Johannes M. Schmitt
13665fc113
[Security] added some more tests
2011-03-10 10:25:33 +01:00
Johannes M. Schmitt
5127ece259
[Security] fixed some left-overs
2011-03-10 10:25:32 +01:00
Johannes Schmitt
1d5538fc60
[Security] various changes, see below
...
- visibility changes from protected to private
- AccountInterface -> UserInterface
- SecurityContext::vote() -> SecurityContext::isGranted()
2011-03-10 10:25:32 +01:00
Fabien Potencier
dded1955e4
[Routing] fixed the / problem in a URL segment
2011-03-09 23:57:26 +01:00
Fabien Potencier
222d4aa89d
Merge remote branch 'stof/tree_builder'
...
* stof/tree_builder:
Fixed type-hinting and renamed the method to be more semantic
Removed duplicated code
2011-03-09 22:07:31 +01:00
Fabien Potencier
1de694ffc0
merged
2011-03-09 21:58:43 +01:00
Fabien Potencier
72586b2d5f
Merge remote branch 'opensky/hotfix/test_client'
...
* opensky/hotfix/test_client:
[HttpKernel] added test for uri change
[HttpKernel] got rid of url transformation into uri, as parse_url doesn't work with uris
2011-03-09 21:46:16 +01:00
Fabien Potencier
b4cde9d3bb
Merge remote branch 'lsmith77/classcollectionloader'
...
* lsmith77/classcollectionloader:
make it possible to define the file extension
2011-03-09 17:40:38 +01:00
Fabien Potencier
1fe25bc00a
Merge remote branch 'Seldaek/file_field'
...
* Seldaek/file_field:
[HttpFoundation] Fixed test breaking on windows
[HttpFoundation] UploadedFile::getOriginalName is now overriding getName
[HttpFoundation] Minor optimization
[Form] Add exception for missing enctype attribute
2011-03-09 17:26:51 +01:00
Jordi Boggiano
991b1ed225
[HttpFoundation] UploadedFile::getOriginalName is now overriding getName
2011-03-09 17:26:08 +01:00
Fabien Potencier
17ef911f19
[Routing] removed the normalizeUrl() method and renamed url to pathinfo as this is more correct
2011-03-09 17:25:44 +01:00
Jordi Boggiano
2a5fcdfb1a
[HttpFoundation] Minor optimization
2011-03-09 17:25:36 +01:00
Jordi Boggiano
88cfc4c011
[Form] Add exception for missing enctype attribute
2011-03-09 17:23:21 +01:00
Jordi Boggiano
4c0ea6179b
[Routing] UrlMatcher shouldn't collapse multiple slashes
...
* fixes a problem with security (/foo/bar and /foo///bar are not the same URL as far as security is concerned)
* this can still be done in your web server configuration or by adding a core.request listener
2011-03-09 17:07:12 +01:00
Kris Wallsmith
8c45a21637
[DependencyInjection] fixed false positive when detecting circular references if a service throws an exception during creation
2011-03-09 06:38:02 -08:00
Bernhard Schussek
0eb04e487d
Merge remote branch 'Infranology/intl-stub' into intl-stub
2011-03-09 12:04:51 +01:00
Bernhard Schussek
8658287ed6
Merge branch 'master' into intl-stub
2011-03-09 12:02:35 +01:00
Miha Vrhovnik
76d664faa6
Fixing undefined notices by changing visibility back to protected for sompe properties and methods.
2011-03-09 10:24:16 +01:00
Fabien Potencier
9f0f127e6a
[Form] fixed typo in XSD path
2011-03-09 02:34:51 +01:00
Fabien Potencier
32d2ec7571
[ClassLoader] moved most protected methods and properties to private
2011-03-08 20:55:22 +01:00
Fabien Potencier
c9b965dbee
[Finder] moved most protected methods and properties to private
2011-03-08 20:54:22 +01:00
Fabien Potencier
75b29ffdfe
[Translation] moved most protected methods and properties to private
2011-03-08 20:47:32 +01:00
Fabien Potencier
94c445957c
[Yaml] moved most protected methods and properties to private
2011-03-08 20:33:19 +01:00
Eriksen Costa
0fb9b9a70d
[Locale] changed method name
2011-03-08 16:28:29 -03:00
Eriksen Costa
1da1b80169
[Locale] updated docblocks for StubCollator
2011-03-08 16:06:26 -03:00
Eriksen Costa
310d7eadba
[Locale] updated docblocks
2011-03-08 16:06:10 -03:00
Kris Wallsmith
e273a709f1
[Templating] introduced concept of asset packages so base URLs and asset versions can be set more granularly
2011-03-08 08:31:39 -08:00
Fabien Potencier
4f0e0a6193
fixed some emails
2011-03-08 15:43:54 +01:00
Fabien Potencier
8716c2ad1e
merged
2011-03-08 15:43:02 +01:00
Fabien Potencier
a0caa942e9
[Config] fixed CS
2011-03-08 15:33:46 +01:00
Fabien Potencier
031a65e4f8
Merge remote branch 'kriswallsmith/dic/lazy-compiler'
...
* kriswallsmith/dic/lazy-compiler:
[DependencyInjection] made compiler lazy again since there are many temporary ContainerBuilder objects that don't use it
2011-03-08 14:42:53 +01:00
Kris Wallsmith
de6c353b40
[DependencyInjection] made compiler lazy again since there are many temporary ContainerBuilder objects that don't use it
2011-03-08 05:34:07 -08:00
develop
1daedcc6fc
fix whitespace problem
2011-03-08 09:49:52 +01:00
develop
a93aa55199
If you use an annotation resource pointing to a controller directory
...
in your routing configuration, only existing files in this directory
get tracked for changes in this directory. So if you add a new
controller file in this directory you'd have to manually clear the
cache since the new file gets ignored.
This patch adds a DirectoryResource for this case which tracks all
changes in the given directory (and files and directories contained
within).
2011-03-08 09:49:45 +01:00
Bernhard Schussek
2cf3779a2c
Renamed EventArgs classes and adapted remaining code to EventManager
...
The only missing part is ContainerAwareEventManager::addEventSubscriberService(),
because I'm not sure how to find out the class name of a service in the DIC.
Also, inline documentation of this code needs to be finished once it is accepted.
2011-03-07 19:16:05 +01:00
Bernhard Schussek
a54d3e6fb0
Merge remote branch 'symfony/master' into event-manager
2011-03-07 19:15:57 +01:00
Bulat Shakirzyanov
b80f307efd
[HttpKernel] got rid of url transformation into uri, as parse_url doesn't work with uris
2011-03-07 10:54:31 -05:00
Eriksen Costa
33c37085da
[Locale] moved static constructor
2011-03-07 03:07:19 -03:00
Eriksen Costa
1e2fa773c2
[Locale] renamed method
2011-03-07 03:07:18 -03:00
Eriksen Costa
8825dc8166
[Locale] renamed private method name and variable method with better names
2011-03-07 03:07:18 -03:00
Eriksen Costa
78485356a9
[Locale] code conventions changes (static keyword before visibility keyword)
2011-03-07 03:07:18 -03:00
Eriksen Costa
d8e35a2f5c
[Locale] added tests to document behavior not implemented by StubIntlDateFormatter::parse()
2011-03-07 03:07:18 -03:00
Eriksen Costa
0a577e6fce
[Locale] added more tests to time zone parsing with AM/PM markers
2011-03-07 03:07:17 -03:00
Eriksen Costa
d2df09f744
[Locale] refactored time zone support
2011-03-07 03:07:12 -03:00
ornicar
5d794cc62a
[HttpKernel] Remove method visibility in BundleInterface
2011-03-06 19:17:50 -08:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
Lenar Lõhmus
c6bbecf0bb
Check if config/template file is actually readable before further processing
2011-03-06 10:46:39 +01:00
Fabien Potencier
a137d72351
Merge remote branch 'hhamon/cookie_path_fix'
...
* hhamon/cookie_path_fix:
[Security] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
[HttpKernel] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
[BrowserKit] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
[HttpFoundation] fix cookie path default value to / and added some new unit tests to cover the class
2011-03-06 10:44:40 +01:00
Fabien Potencier
487cddcfee
Merge remote branch 'DuoSRX/code-coverage'
...
* DuoSRX/code-coverage:
[HttpFoundation] Fixed a typo in response->setLastModified()
[HttpFoundation] Added some more tests on response
[HttpFoundation] Added some tests on Response
[HttpFoundation] Replace a duplicated test with a method in Response
Fixed code coverage generation when resources folder are deeper
2011-03-06 10:44:13 +01:00
Fabien Potencier
bbc5f40636
Merge remote branch 'jakzal/FileLocatorTest'
...
* jakzal/FileLocatorTest:
[Config] Added missing tests to satisfy 100% test coverage of FileLocator. Made sure that every path returned with locate() is unique.
2011-03-06 10:40:52 +01:00
Fabien Potencier
51023eea86
[HttpFoundation] fixed CS
2011-03-06 10:39:33 +01:00
Fabien Potencier
c02ebbf2d8
Merge remote branch 'digitalkaoz/httpkernel-datacollector'
...
* digitalkaoz/httpkernel-datacollector:
[HttpKernel] added Tests for DataCollectors
[HttpFoundation] more sophisticated checks for valid expiration
2011-03-06 10:38:55 +01:00
Fabien Potencier
54e19b5376
Merge remote branch 'digitalkaoz/httpkernel-debug'
...
* digitalkaoz/httpkernel-debug:
[HttpKernel] added tests for debug stuff
[HttpKernel] reset handling if subject::handle throws an exception, otherwise it wouldnt be able to handle furthermore
2011-03-06 10:37:14 +01:00
Fabien Potencier
4accca3a76
Merge remote branch 'digitalkaoz/httpfoundation-session'
...
* digitalkaoz/httpfoundation-session:
[HttpFoundation] added Session tests.
[HttpFoundation] added a check for array keys existence.
2011-03-06 10:36:15 +01:00
Fabien Potencier
1e996901f5
Merge remote branch 'schmittjoh/security'
...
* schmittjoh/security:
[Security] forward the entire access denied exception instead of only the message
[Security] changed defaults for MessageDigestEncoder
TICKET #9557 : session isn't required when using http basic authentification mecanism for example
[Security] improved entropy to make collision attacks harder
[Security] added the 'key' attribute of RememberMeToken to serialized string to be stored in session
Fix the Acl schema generator script.
2011-03-06 10:33:18 +01:00
Fabien Potencier
a972770371
Merge remote branch 'Seldaek/exception_msg'
...
* Seldaek/exception_msg:
[Config] Improved exception message a bit
2011-03-06 10:32:12 +01:00
Fabien Potencier
0a8730ab26
Merge remote branch 'lewinski/yaml-escapes'
...
* lewinski/yaml-escapes:
[Yaml] Improved support for double quoted values.
2011-03-06 08:34:20 +01:00
Xavier Perez
19090d3fb7
[HttpFoundation] Fixed a typo in response->setLastModified()
2011-03-06 00:17:54 +01:00
Robert Schönthal
87e1359ebd
[HttpFoundation] more sophisticated checks for valid expiration
2011-03-06 00:13:47 +01:00
Matthew Lewinski
ed338d9422
[Yaml] Improved support for double quoted values.
...
Added support for the full range of escaped values in double quoted
strings in chapter 5 of the YAML 1.1 and 1.2 specs. The escaping
and unescaping strategies were factored out into separate classes to
keep the logic isolated.
Added examples from the spec to the unit tests for all escaped values.
2011-03-05 15:39:48 -06:00
Robert Schönthal
415b456b4e
[HttpKernel] reset handling if subject::handle throws an exception, otherwise it wouldnt be able to handle furthermore
2011-03-05 20:21:23 +01:00
Bernhard Schussek
f1393d7b1f
Replaced EventDispatcher by Doctrine's EventManager implementation
...
Doctrine's EventManager implementation has several advantages over the
EventDispatcher implementation of Symfony2. Therefore I suggest that we
use their implementation.
Advantages:
* Event Listeners are objects, not callbacks. These objects have handler
methods that have the same name as the event. This helps a lot when
reading the code and makes the code for adding an event listener shorter.
* You can create Event Subscribers, which are event listeners with an
additional getSubscribedEvents() method. The benefit here is that the
code that registers the subscriber doesn't need to know about its
implementation.
* All events are defined in static Events classes, so users of IDEs benefit
of code completion
* The communication between the dispatching class of an event and all
listeners is done through a subclass of EventArgs. This subclass can be
tailored to the type of event. A constructor, setters and getters can be
implemented that verify the validity of the data set into the object.
See examples below.
* Because each event type corresponds to an EventArgs implementation,
developers of event listeners can look up the available EventArgs methods
and benefit of code completion.
* EventArgs::stopPropagation() is more flexible and (IMO) clearer to use
than notifyUntil(). Also, it is a concept that is also used in other
event implementations
Before:
class EventListener
{
public function handle(EventInterface $event, $data) { ... }
}
$dispatcher->connect('core.request', array($listener, 'handle'));
$dispatcher->notify('core.request', new Event(...));
After (with listeners):
final class Events
{
const onCoreRequest = 'onCoreRequest';
}
class EventListener
{
public function onCoreRequest(RequestEventArgs $eventArgs) { ... }
}
$evm->addEventListener(Events::onCoreRequest, $listener);
$evm->dispatchEvent(Events::onCoreRequest, new RequestEventArgs(...));
After (with subscribers):
class EventSubscriber
{
public function onCoreRequest(RequestEventArgs $eventArgs) { ... }
public function getSubscribedEvents()
{
return Events::onCoreRequest;
}
}
$evm->addEventSubscriber($subscriber);
$evm->dispatchEvent(Events::onCoreRequest, new RequestEventArgs(...));
2011-03-05 15:30:34 +01:00
Jakub Zalas
bdd4194b6f
[Config] Added missing tests to satisfy 100% test coverage of FileLocator. Made sure that every path returned with locate() is unique.
2011-03-05 15:24:44 +01:00
Johannes Schmitt
b67a1dd677
[Security] forward the entire access denied exception instead of only the message
2011-03-05 14:30:08 +01:00
Xavier Perez
0d56ca5654
[HttpFoundation] Replace a duplicated test with a method in Response
2011-03-05 14:27:35 +01:00
Johannes Schmitt
63dbcea8ee
Merge branch 'lewinski-fix-acl-schema-generator' into security
2011-03-05 14:13:53 +01:00
Johannes Schmitt
0eb4f49061
Merge branch 'fix-acl-schema-generator' of https://github.com/lewinski/symfony into lewinski-fix-acl-schema-generator
2011-03-05 13:54:10 +01:00
Johannes Schmitt
4c7aa343d3
Merge branch 'opensky-hotfix/remember-me-token-fix' into security
2011-03-05 13:51:52 +01:00
Johannes Schmitt
966607746f
Merge branch 'hotfix/remember-me-token-fix' of https://github.com/opensky/symfony into opensky-hotfix/remember-me-token-fix
2011-03-05 13:51:20 +01:00
Johannes Schmitt
e03958f5b0
Merge branch 'cyqui-TICKET_9557' into security
2011-03-05 13:50:14 +01:00
Johannes Schmitt
e91cb7cf96
Merge branch 'TICKET_9557' of https://github.com/cyqui/symfony into cyqui-TICKET_9557
2011-03-05 13:49:38 +01:00
Johannes Schmitt
f82b89cdc5
[Security] changed defaults for MessageDigestEncoder
...
- encode_as_base64 set to true
- iterations increased to 5000 from 1
2011-03-05 13:45:35 +01:00
Cyril Quintin
310a6c99a2
TICKET #9557 : session isn't required when using http basic authentification mecanism for example
2011-03-05 13:33:56 +01:00
Robert Schönthal
58db452e21
[HttpFoundation] added a check for array keys existence.
2011-03-05 13:30:54 +01:00
Johannes Schmitt
f010742e45
[Security] improved entropy to make collision attacks harder
2011-03-05 13:30:27 +01:00
Johannes Schmitt
eb2eb2e47a
[DependencyInjection] adds property injection
2011-03-05 13:03:28 +01:00
Fabien Potencier
44d069a3fb
Merge remote branch 'kriswallsmith/dic/auto-ext-load'
...
* kriswallsmith/dic/auto-ext-load:
[HttpKernel] added an subclass merge extension configuration compiler pass to ensure each bundle's "main" extension is loaded
[DependencyInjection] extensions should only load if called during configuration
2011-03-05 12:18:18 +01:00
Bulat Shakirzyanov
dbde41c082
[Security] added the 'key' attribute of RememberMeToken to serialized string to be stored in session
2011-03-04 13:26:08 -05:00
Bernhard Schussek
4346097ffd
[Form] Added TODOs and a tweak
2011-03-04 16:01:50 +01:00
Chekote
4e280dfc37
Fixed undefined variable error when escaping a js string while using UTF-8 charset.
2011-03-03 16:00:42 -06:00
Hugo Hamon
2cbdd2c18b
[HttpKernel] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
2011-03-03 14:52:26 +01:00
Hugo Hamon
8182913f1f
[BrowserKit] renamed Cookie::isHttponly() to Cookie::isHttpOnly()
2011-03-03 14:52:03 +01:00
Hugo Hamon
ad56bd8e47
[HttpFoundation] fix cookie path default value to / and added some new unit tests to cover the class
2011-03-03 14:50:14 +01:00
Kris Wallsmith
33d47be32e
[HttpKernel] added an subclass merge extension configuration compiler pass to ensure each bundle's "main" extension is loaded
2011-03-03 13:54:32 +01:00
Kris Wallsmith
bf0553c23a
[DependencyInjection] extensions should only load if called during configuration
2011-03-03 13:53:29 +01:00
Bernhard Schussek
bfbc1121ce
[Form] Added ArrayAccess to DefaultRenderer
2011-03-02 22:56:20 +01:00
Igor Wiedler
2c65c7dab6
[Locale] use the sort flag in StubCollator::asort()
2011-03-02 17:39:30 +01:00
Igor Wiedler
c22a43860b
[Locale] add missing StubCollator methods, with tests
2011-03-02 17:13:24 +01:00
Bernhard Schussek
0f8cd43ac4
[Form] The TwigTheme now accepts several templates
2011-03-02 16:24:22 +01:00
Bernhard Schussek
e53c688a6b
[Form] Fixed RepeatedField, improved structure of the Twig templates
2011-03-02 16:00:31 +01:00
Bernhard Schussek
ea49621034
[Form] Fixed CSRF protection
2011-03-02 15:01:04 +01:00
Bernhard Schussek
5705f74bd0
[Form] Refactored FieldFactory and moved new implementation into the DIC. FormTest fails now.
2011-03-02 14:58:19 +01:00
Bernhard Schussek
68013f4db2
Merge remote branch 'symfony/master' into experimental
2011-03-02 12:27:30 +01:00
Bernhard Schussek
8a6246bd06
[Form] Refactored contents of FormFactory into individual FieldConfig classes
2011-03-02 12:20:30 +01:00
ornicar
6790e45911
[DependencyInjection] Fix variable name in ExtensionInterface
2011-03-01 16:20:26 -08:00
Fabien Potencier
fd53035c8d
Merge remote branch 'schmittjoh/inlinePassFix'
...
* schmittjoh/inlinePassFix:
[DependencyInjection/Compiler] fixes a bug which silently changed the scope of services
2011-03-01 20:38:48 +01:00
Pascal Borreli
65560b30e1
[Validator] Fixed Typo
2011-03-01 18:58:08 +01:00
Pascal Borreli
843d5a8399
[Security] Fixed Typo
2011-03-01 18:58:08 +01:00
Pascal Borreli
c70824d22c
[HttpKernel] Fixed Typo
2011-03-01 18:58:08 +01:00
Pascal Borreli
f3a0b3fd83
[Form] Fixed Typo
2011-03-01 18:58:08 +01:00
Pascal Borreli
b84999ac33
[DependencyInjection] Fixed Typo
2011-03-01 18:58:08 +01:00
Pascal Borreli
d060a3c6ff
[CssSelector] Fixed Typo
2011-03-01 18:58:07 +01:00
Pascal Borreli
ff44b0ff28
[HttpFoundation] Removed remove recurring test
2011-03-01 18:58:07 +01:00
Bernhard Schussek
9eff64dd54
[Form] Added EventListener implementation and moved CollectionField to factory
2011-03-01 15:18:55 +01:00
Jordi Boggiano
75dbc3a5b8
[Config] Improved exception message a bit
2011-03-01 14:44:24 +01:00
Bernhard Schussek
528ef55da6
[Form] Implemented generic data filter hooks
...
You can now modify set or bound data by adding a filter for either of the following events:
* Filters::filterBoundDataFromClient
* Filters::filterBoundData
* Filters::filterSetData
2011-03-01 14:19:28 +01:00
Johannes M. Schmitt
67c886f3df
[DependencyInjection/Compiler] fixes a bug which silently changed the scope of services
2011-03-01 13:47:34 +01:00
Eriksen Costa
a04099728b
[Locale] removed redundant code
2011-03-01 02:14:08 -03:00
Eriksen Costa
2a06139a97
[Locale] reordered methods to match code conventions
2011-03-01 02:13:55 -03:00
Eriksen Costa
4cc5b6f2d0
[Locale] throw exception if value different than null is provided (behavior not implemented in the stub)
2011-03-01 02:08:13 -03:00
Eriksen Costa
7ba71c0be1
[Locale] added missing docblocks
2011-03-01 01:59:14 -03:00
Igor Wiedler
51e9d8946b
[Locale] match reverseMatchingRegExp against full string value
2011-02-28 18:45:52 +01:00
Igor Wiedler
fd0cc37c71
[Locale] handle escaped (enquoted) strings when parsing
2011-02-28 18:22:22 +01:00
Degory Valentine
057e86161e
added test to verify ArgvInput->parse() failure with array input definition
2011-02-28 17:16:58 +01:00
Degory Valentine
0306c9aa66
Fixed array argument parsing in ArgvInput.
2011-02-28 17:16:58 +01:00
Bernhard Schussek
c1edf116f2
[Form] Removed notion of "hidden" fields
...
Instead, hidden fields now override the "row" template to not include a label or errors.
The "rest" (former "hidden") helper has been adapted to output any fields that were not
rendered manually. It should usually be called at the end of a form.
2011-02-28 17:01:11 +01:00
Bernhard Schussek
02d2121dcd
[Form] Improved rendering
...
Fields are not available in the templates anymore. Instead, all required information can be
accessed through view variables.
Example usage of helpers and variables in a form theme:
// use the label helper
{{ this.label('my label') }}
// use the label variable
{{ this.vars.label }}
{{ label }}
Example usage of helpers and variables in a normal template:
// use the label helper
{{ field.label('my label') }}
// use the label variable
{{ field.vars.label }}
2011-02-28 16:50:23 +01:00
Igor Wiedler
ac8b9be130
[Locale] import FullTransformer via usee statement
2011-02-28 14:29:44 +01:00
Igor Wiedler
a5f8411eff
[Locale] minor cosmetical tweaks to the pre-escaped regExp
2011-02-28 13:54:38 +01:00
Igor Wiedler
20acdac57d
[Locale] remove support for era (BC|AD)
...
parsing it is a pain, nobody uses it, BC only works on 64 bit.
2011-02-28 09:46:30 -03:00
Igor Wiedler
195b2ebdde
[Locale] handle IntlDateFormatter::parse with non-integer timestamp
2011-02-28 09:46:30 -03:00
Eriksen Costa
b7e9b35ca9
[Locale] added parsing of dates with regExp metachars
2011-02-28 09:44:14 -03:00
Victor Berchet
d281409ed5
[Config] Define a common interface for NodeBuilder and TreeBuilder
2011-02-28 12:39:43 +01:00
Victor Berchet
6d37218db1
[Config] Tweak type hints & phpDoc for the builders
2011-02-28 12:39:43 +01:00
Victor Berchet
b5fadcd22c
[Config][TreeBuilder] Tweak the code
2011-02-28 12:39:22 +01:00
Victor Berchet
6c9e48fd8f
[Config][VariableNode] Tweak the code
2011-02-28 12:39:21 +01:00
Victor Berchet
687c4dfeb1
[Config][BooleanNode] Tweak the code
2011-02-28 12:39:21 +01:00
Victor Berchet
e47f808376
[Config] Tweak phpDoc
2011-02-28 12:39:13 +01:00
Fabien Potencier
2bb2388c3f
fixed typo
2011-02-28 12:12:49 +01:00
Victor Berchet
4d83b36170
[Config][ArrayNode] Tweak normalizeValue() code & phpDoc
2011-02-28 10:13:27 +01:00
Victor Berchet
60043a3c96
[Config][ArrayNode] Tweak some phpDoc
2011-02-28 10:12:44 +01:00
Martin Hason
c75622cb4b
[DependencyInjection] removed unused class Extension, fix tests
2011-02-28 09:57:18 +01:00
Martin Hason
1d04ebfda5
[HttpKernel] changed extends Extension to implements ExtensionInterface
2011-02-28 09:55:53 +01:00
Martin Hason
d231a8a8d5
[Config] [DependencyInjection] removed DependencyInjection dependency in Config, fix tests
2011-02-28 09:19:13 +01:00
Eriksen Costa
0449889513
[Locale] added timezone parsing implementation
2011-02-28 01:19:19 -03:00
Matthew Lewinski
cde5f528c2
Fix the Acl schema generator script.
...
Change 3e818846 in doctrine/dbal introduced a number of new classes in
the Doctrine\DBAL\Platforms\Keywords namespace, so we need to be more
careful here when generating Acl schema, so as to only load Platform
classes and not any others in the same directory.
2011-02-27 16:56:47 -06:00
Christophe Coevoet
a960355c46
Fixed type-hinting and renamed the method to be more semantic
2011-02-27 22:44:44 +01:00
Christophe Coevoet
0f2380af3f
Removed duplicated code
2011-02-27 22:43:07 +01:00
Fabien Potencier
3948c2d8a2
[Routing] fixed annotation dir loader auto-reload when a controller class changes
2011-02-27 22:39:54 +01:00
Fabien Potencier
37178fed01
Merge remote branch 'lewinski/radio-infinite-recursion-fix'
...
* lewinski/radio-infinite-recursion-fix:
[Form] Fix infinite recursion in RadioField->getName()
2011-02-27 22:35:57 +01:00
Fabien Potencier
d4663505f7
Merge remote branch 'vicb/config'
...
* vicb/config:
[Config] Simplify ScalarNode by inheriting from VariableNode
2011-02-27 22:32:11 +01:00
Eriksen Costa
dadd896915
[Locale] added implementation for minutes and seconds
2011-02-27 18:21:35 -03:00
Fabien Potencier
c99a44b1e8
Merge remote branch 'schmittjoh/security'
...
* schmittjoh/security:
[Security] added method to retrieve the configured remember-me parameter
[Security] Copy token attributes when auth providers create a new token from another
2011-02-27 22:20:44 +01:00
Eriksen Costa
e78c6c2b1a
[Locale] refactored hour manipulation
2011-02-27 18:14:02 -03:00
Fabien Potencier
c58b6afc38
Merge remote branch 'cristiangsp/Translation_FallbackLocale'
...
* cristiangsp/Translation_FallbackLocale:
[Translation] Modified Translation unit test "testTransWithFallbackLocale"
[Translation] Fixed the addition of the fallbackLocale catalogue to the current locale catalogue.
[Translation] Added search to FallbackLocale Catalogue.
2011-02-27 21:48:34 +01:00
Fabien Potencier
cdf6851eb3
fixed merge
2011-02-27 21:16:13 +01:00
Fabien Potencier
49f84f1997
Merge remote branch 'lsmith77/code_analyzer_2011_02_27'
...
* lsmith77/code_analyzer_2011_02_27:
corrected NonceExpiredException namespace
issues found by static code analysis
2011-02-27 21:12:31 +01:00
Eriksen Costa
348dd7ba24
[Locale] refactoring to separate concerns
2011-02-27 17:03:54 -03:00
Christophe Coevoet
92bfbf575c
Fixed CS
2011-02-27 20:56:29 +01:00
Eriksen Costa
4a7c33ce82
[Locale] inject named capture string into Transformer constructor
2011-02-27 16:37:49 -03:00
Lukas Kahwe Smith
2bf30f8bb7
corrected NonceExpiredException namespace
2011-02-27 19:46:40 +01:00
Lukas Kahwe Smith
4b3c49550f
issues found by static code analysis
2011-02-27 19:34:02 +01:00
Eriksen Costa
c1c0c3c42e
[Locale] added parsing for hours (12 and 24 hours)
2011-02-27 15:22:25 -03:00
Pascal Borreli
5b819261c2
[Yaml] Removed useless else
2011-02-27 18:36:38 +01:00
Pascal Borreli
87452f7515
[Translation] Removed useless else
2011-02-27 18:36:38 +01:00
Pascal Borreli
5a922dae22
[Templating] Removed useless else
2011-02-27 18:36:38 +01:00
Pascal Borreli
787812d968
[Security] Removed useless else
2011-02-27 18:36:38 +01:00
Pascal Borreli
1fcb99b936
[HttpKernel] Removed useless else
2011-02-27 18:36:38 +01:00
Pascal Borreli
fc42cc5066
[HttpFoundation] Removed useless else
2011-02-27 18:36:38 +01:00
Pascal Borreli
03f91ff1e0
[Form] Removed useless else
2011-02-27 18:36:37 +01:00
Pascal Borreli
66f4d8bf6d
[DependencyInjection] Removed useless else
2011-02-27 18:36:37 +01:00
Pascal Borreli
2cbaddfd87
[CssSelector] Removed useless else
2011-02-27 18:36:37 +01:00
Pascal Borreli
f7ab114d36
[HttpFoundation] Fixed missing curly brackets
2011-02-27 18:36:37 +01:00
Pascal Borreli
46d28ce1b1
[Console] Removed useless else
2011-02-27 18:36:37 +01:00
Pascal Borreli
96981670ea
[BrowserKit] Removed useless else
2011-02-27 18:36:36 +01:00
cgonzalez
381d1e2da1
[Translation] Fixed the addition of the fallbackLocale catalogue to the current locale catalogue.
...
When loading a catalogue the function "optimizeCatalogue" add the fallback catalogue to the current locale catalogue. This should be done by first adding the language catalogue and finally adding the fallbacklocale catalogue specified in the configuration. This subsequent additions are done by the "loadCatalogue" function.
The problem is that in the "loadCatalogue" function exists an if statement that checks if the resource of a given locale exists before loading it. If not, the function simply returns. This return implies that the subsequent addition of the fallbacklocale wouldn't be done.
This has been fixed by simply replacing the current if statement and adding a new one that, if the resource exists, then executes the process of resource loading. Finally, the function continue calling the "optimizeCatalogue" function.
2011-02-27 12:32:46 +01:00
cgonzalez
b6049beca2
[Translation] Added search to FallbackLocale Catalogue.
...
When the current locale catalogue doesn't contain the id searched, the code doesn't search in the fallbacklocale catalogue (as is explained in the documentation).
Added the search to the fallbacklocale catalogue to the translation function.
2011-02-27 12:32:46 +01:00
Eriksen Costa
ed85345312
[Locale] added parsing implementation for year, month and day
2011-02-27 02:22:07 -03:00
Eriksen Costa
f096b7b2bb
[Locale] removed trailing whitespace
2011-02-27 01:04:07 -03:00
Lukas Kahwe Smith
141b798127
make it possible to define the file extension
2011-02-26 23:12:46 +01:00
Johannes Schmitt
97ee92e7b0
Merge branch 'CopyTokenAttributesInProviders' of https://github.com/opensky/symfony into opensky-CopyTokenAttributesInProviders
2011-02-26 21:47:57 +01:00
Johannes Schmitt
621a79f1f2
[Security] added method to retrieve the configured remember-me parameter
2011-02-26 21:44:40 +01:00
Pascal Borreli
2fbb8e07f8
[Security] Fixed typo
2011-02-26 20:02:06 +01:00
Pascal Borreli
b9a6f9210b
[HttpKernel] Fixed typo
2011-02-26 20:02:06 +01:00
Pascal Borreli
f3b9364eae
[HttpFoundation] Fixed typo
2011-02-26 20:02:06 +01:00
Pascal Borreli
ddd6d93f9f
[Form] Fixed typo
2011-02-26 20:02:06 +01:00
Pascal Borreli
4f2f1c08a9
[EventDispatcher] Fixed typo
2011-02-26 20:02:06 +01:00
Pascal Borreli
1a8ce933e1
[DependencyInjection] Fixed typo
2011-02-26 20:02:05 +01:00
Pascal Borreli
b940046ac4
[CssSelector] Fixed typo
2011-02-26 20:02:05 +01:00
Pascal Borreli
e1ec66cbb8
[Config] Fixed typo
2011-02-26 20:02:05 +01:00
Igor Wiedler
0e260c1170
[Locale] refactor date formatting into separate transformer classes, early concepts for date parsing
2011-02-26 19:34:59 +01:00
noel guilbert
a8eff2b154
Improved profiler to store and retrieve sub requests data
2011-02-26 17:24:02 +01:00
Fabien Potencier
e16c666266
[Routing] made an empty path info to redirect to / (as for any other route that ends with a /)
2011-02-26 08:56:44 +01:00
Fabien Potencier
f46c6f7e45
[Routing] fixed the %2f problem in URLs
2011-02-25 18:01:32 +01:00
Bernhard Schussek
adbf2cb2bf
[Form] Added ArrayAccess interface to DefaultRenderer
2011-02-25 01:11:53 +01:00
Bernhard Schussek
c6e9fd97b6
[Form] Fixed various bugs
2011-02-25 00:09:10 +01:00
Bernhard Schussek
e334c4734e
[Form] Registered FormFactory in the DIC
2011-02-24 21:27:44 +01:00
Bernhard Schussek
f2c1976da6
[Form] Refactored FileField to FormFactory and fixed file upload mechanism
2011-02-24 20:47:48 +01:00
Bernhard Schussek
848ec01f02
[Form] Refactored RepeatedField to FormFactory
2011-02-24 16:54:34 +01:00
Bernhard Schussek
87b417889c
[Form] Fixed DateTimeFieldTest
2011-02-24 16:34:29 +01:00
Victor Berchet
3bfb599074
[Config] Simplify ScalarNode by inheriting from VariableNode
2011-02-24 16:31:00 +01:00
Bernhard Schussek
0f8a413221
[Form] Fixed EntityChoiceFieldTest
2011-02-24 16:26:57 +01:00
Bernhard Schussek
acc5c76f77
[Form] Fixed failing DateFieldTest and TimeFieldTest
2011-02-24 16:19:59 +01:00
Victor Berchet
38da529997
[Kernel] Get rid of Kernel::registerRootDir()
2011-02-24 14:02:28 +01:00
Michel Weimerskirch
5f0d83662c
Simplified EmailValidator using native PHP validation function.
2011-02-24 04:30:23 -08:00
Bernhard Schussek
e3e8c29875
Merge branch 'bugfix' into experimental
...
Conflicts:
src/Symfony/Component/Form/EntityChoiceField.php
src/Symfony/Component/Form/Field.php
src/Symfony/Component/Form/HybridField.php
tests/Symfony/Tests/Component/Form/FieldTest.php
tests/Symfony/Tests/Component/Form/FormTest.php
2011-02-24 13:17:53 +01:00
Bernhard Schussek
87e6cbf8f0
[Form] Fixed: PropertyPath always requires arrays or objects. Forms now always store arrays or objects as transformed data, even when they were bound empty
2011-02-24 12:22:00 +01:00
Bernhard Schussek
8e2d0bae90
[Form] Ported DateTimeField to FormFactory
2011-02-23 23:34:25 +01:00
Bernhard Schussek
b5671c1be0
[Form] Implemented ArrayToPartsTransformer and ValueToDuplicatesTransformer
2011-02-23 22:30:15 +01:00
Jeremy Mikola
5113886f34
[Security] Copy token attributes when auth providers create a new token from another
...
PreAuthenticatedAuthenticationProvider and UserAuthenticationProvider tend to copy a token instead of modifying it during their authenticate() methods, which is probably a good idea if the token might be immutable. Ensure that the token's attributes get copied along with everything else.
2011-02-23 16:03:01 -05:00
Bernhard Schussek
5a2404a1d6
[Form] Removed deprecated fields
2011-02-23 21:23:14 +01:00
Bernhard Schussek
ac5440f8d4
[Form] DateTimeToArrayTransformer does not accept partially filled arrays anymore. Replaces DateField::isPartiallyFilled() and TimeField::isPartiallyFilled()
2011-02-23 21:17:20 +01:00
Bernhard Schussek
78b26c2cc5
[Form] Renamed type 'raw' to 'array' in date and time field
2011-02-23 21:05:33 +01:00
Igor Wiedler
bcca989c41
[Locale] refactor and simplify some parts of StubIntlDateFormatter
2011-02-23 19:09:48 +01:00
Bernhard Schussek
c8275c5b27
[Form] Refactored PercentField to FormFactory
2011-02-23 15:26:01 +01:00
Bernhard Schussek
4af27bd590
[Locale] Added stubs for \Collator and \IntlDateFormatter
2011-02-23 14:46:27 +01:00
Igor Wiedler
ee5bc36c55
[Locale] add docblocks to StubIntlDateFormatter and adjust some things to be more like StubNumberFormatter
2011-02-23 14:20:47 +01:00
Igor Wiedler
7b2b025ebd
[Locale] add @author tag to StubCollator
2011-02-23 14:20:46 +01:00
Igor Wiedler
30ea2bae32
[Locale] add @author tag to StubIntlDateFormatter
2011-02-23 14:20:46 +01:00
Igor Wiedler
96b7c8ff73
[Locale] initial stub of StubCollator with class constants
2011-02-23 14:20:45 +01:00
Igor Wiedler
3cc60f7cb4
[Locale] throw NotImplementedException on unimplemented chars
2011-02-23 14:20:45 +01:00
Igor Wiedler
577dd30927
[Locale] remove setLocale from StubIntlDateFormatter
2011-02-23 14:20:45 +01:00
Igor Wiedler
53839f9235
[Locale] refactor tests, make use of specialized exception
2011-02-23 14:20:45 +01:00
Igor Wiedler
77258223f1
[Locale] re-order StubIntlDateFormatter methods, rename timezoneId to timeZoneId, add setLenient method
2011-02-23 14:20:44 +01:00
Igor Wiedler
1191ab4b56
[Locale] add remaining IntlDateFormatter methods with tests
2011-02-23 14:20:44 +01:00
Igor Wiedler
69b38faff7
[Locale] refactoring and some more tests
2011-02-23 14:20:44 +01:00
Igor Wiedler
1f248652cc
[Locale] minor naming change
2011-02-23 14:20:43 +01:00
Jordi Boggiano
bfbc8f63fa
[Locale] Fixed implementation of quote parsing and replacement
2011-02-23 14:20:43 +01:00
Igor Wiedler
c7380fbb4c
[Locale] support standard date and time types if no format is set, refactoring and more tests
2011-02-23 14:20:42 +01:00
Igor Wiedler
d3a63d35d4
[Locale] slightly adjust regex for matching quotes
2011-02-23 14:20:42 +01:00
Igor Wiedler
632ded5c96
[Locale] use UTC if timezone is unsupported
2011-02-23 14:20:42 +01:00
Igor Wiedler
a883a3f62a
[Locale] adjust to new quoting format, some tests failing
2011-02-23 14:20:42 +01:00
Igor Wiedler
cc6f996334
[Locale] add a list of unimplemented date format keywords
2011-02-23 14:20:41 +01:00
Igor Wiedler
cbfaaef76e
[Locale] support for z (timezone offset from GMT)
2011-02-23 14:20:41 +01:00
Igor Wiedler
d68c5fa7fd
[Locale] refactor to use DateTime and DateTimeZone, adding timezone support
2011-02-23 14:20:41 +01:00
Igor Wiedler
7efe476693
[Locale] support for s (second)
2011-02-23 14:20:41 +01:00
Igor Wiedler
87d3547679
[Locale] support for m (minute of hour)
2011-02-23 14:20:40 +01:00
Igor Wiedler
6b26f8296d
[Locale] support for K (12-hour (0-11))
2011-02-23 14:20:40 +01:00
Igor Wiedler
5a767045b6
[Locale] implement k (24-hour (1-24)
2011-02-23 14:20:40 +01:00
Igor Wiedler
42a652ce3d
[Locale] refactor IntlDateFormatter::format to build regExp dynamically
2011-02-23 14:20:40 +01:00
Igor Wiedler
bfc7e55692
[Locale] support for H (24 hour)
2011-02-23 14:20:39 +01:00
Igor Wiedler
71e3c97358
[Locale] support for a (AM/PM)
2011-02-23 14:20:39 +01:00
Igor Wiedler
49752f104b
[Locale] support for E (day of week)
2011-02-23 14:20:39 +01:00
Igor Wiedler
d4c1357f11
[Locale] support for D (day of year)
2011-02-23 14:20:39 +01:00
Igor Wiedler
5ffce2d6a2
[Locale] add support for h
2011-02-23 14:20:39 +01:00
Igor Wiedler
ae3ee5d896
[Locale] add support for L, which is the same as M
2011-02-23 14:20:38 +01:00
Igor Wiedler
b702ce86b5
[Locale] support for G and Q placeholders in StubIntlDateFormatter::format
2011-02-23 14:20:38 +01:00
Igor Wiedler
8c1146974f
[Locale] add support for escaping, give specifics on implementation used in tests
2011-02-23 14:20:38 +01:00
Igor Wiedler
55ac407458
[Locale] first implementation of StubIntlDateFormatter
2011-02-23 14:20:37 +01:00
Bernhard Schussek
68bb3ff606
[Form] Used ValuePlugin to pass displayed data to template. The order of added renderer plugins and set renderer variables is now respected
2011-02-23 14:11:18 +01:00
Bernhard Schussek
a40e2dd77b
[Form] Deleted obsolete Field classes, ported some more to FormFactory and fixed lots of failing tests
2011-02-23 14:11:18 +01:00
Bernhard Schussek
7492873186
[Form] Fixed a couple of unit tests, refactored PasswordField to FormFactory
2011-02-23 14:11:18 +01:00
Bernhard Schussek
fee0885256
[Form] Moved options from Field and Form to FormFactory. Tests fail now
2011-02-23 14:11:18 +01:00
Bernhard Schussek
ce432e939d
[Form] Changed notion of 'parameter' to 'var' in the renderer. Merged vars and attributes into single array
2011-02-23 14:11:18 +01:00
Bernhard Schussek
2b8ca25d01
[Form] Refactored NumberField, IntegerField, HiddenField and MoneyField to FormFactory
2011-02-23 14:11:18 +01:00
Bernhard Schussek
af8a093b00
[Form] Refactored CountryField, LanguageField, LocaleField and BirthdayField to FormFactory
2011-02-23 14:11:18 +01:00
Bernhard Schussek
9394ffdea1
[Form] Started to refactor TimeField to FormFactory::getTimeField(). Validation logic is still missing.
2011-02-23 14:11:18 +01:00
Bernhard Schussek
975b8ebe9b
[Form] Started to refactor DateField to FormFactory::getDateField(). Validation logic is still missing.
2011-02-23 14:11:18 +01:00
Bernhard Schussek
b148a2a7ed
[Form] Refactored ChoiceField to FormFactory::getChoiceField()
2011-02-23 14:11:18 +01:00
Bernhard Schussek
6edff6b8a9
[Form] Moved submission logic of ChoiceField to preprocessor
2011-02-23 14:11:18 +01:00
Bernhard Schussek
7a48c0a5c5
[Form] Refactored logic from ChoiceField into ChoicePlugin and SelectMultipleNamePlugin
2011-02-23 14:11:18 +01:00
Bernhard Schussek
61ea51d858
[Form] Added first version of FormFactory, ValuePlugin and ParentNamePlugin
2011-02-23 14:11:18 +01:00
Bernhard Schussek
f7dc71ef59
[Form] Refactored id and name generation to renderer plugins
2011-02-23 14:11:17 +01:00
Bernhard Schussek
861ff957e7
[Form] Refactored DateField pattern, fixed maxlength in TextField
2011-02-23 14:11:17 +01:00
Bernhard Schussek
ed68fd66a9
[Form] Improved the renderer implementation, added concepts of plugins and themes
2011-02-23 14:11:17 +01:00
Bernhard Schussek
6cc0a58edc
[Form] Refactored casting logic from IntegerField to IntegerToLocalizedStringTransformer
2011-02-23 14:11:17 +01:00
Bernhard Schussek
27e1e5251c
[Form] Experimentally refactored Twig rendering support to Form component
2011-02-23 14:11:17 +01:00
Bernhard Schussek
ea1ae46c17
[Form] Added CallbackTransformer for dynamic value transformation
2011-02-23 14:11:17 +01:00
Bernhard Schussek
5eb5cc5743
[Form] Refactored date and time field choices into ChoiceList classes
2011-02-23 14:11:17 +01:00
Bernhard Schussek
f39d8b62f2
[Form] Refactored EntityChoiceField::processData() into individual class
2011-02-23 14:11:17 +01:00
Bernhard Schussek
12c131fc24
[Form] Refactored transformation logic of the choice fields into standalone value transformers
2011-02-23 14:11:17 +01:00
Bernhard Schussek
813ec54fa1
[Form] Refactored parts of the choice fields into ChoiceList instances
2011-02-23 14:11:17 +01:00
Bernhard Schussek
404f83ccc3
[Locale] Added stubs as a replacement for the intl extension
...
You can enable the stubs by including the following code in app/autoload.php:
$loader->registerPrefixFallback(array(
__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs',
));
If the intl extension is not loaded, the stub classes for the "en" locale
will be created automatically.
2011-02-23 13:26:05 +01:00
Eriksen Costa
b649843e00
[Locale] added implementation to StubNumberFormatter::getLocale(), matching StubIntlDateFormatter::getLocale()
2011-02-23 13:26:05 +01:00
Eriksen Costa
b58e25cc83
[Locale] added static constructor
2011-02-23 13:26:05 +01:00
Eriksen Costa
69b0e09d6a
[Locale] added stub implementations of Locale and NumberFormatter classes
...
Updated update-data.php script to extract locales, countries names, languages and currencies
from ICU to be used by the stub implementations
2011-02-23 13:26:05 +01:00
Matthew Lewinski
4f54aacfc7
[Form] Fix infinite recursion in RadioField->getName()
2011-02-22 20:38:29 -06:00
Fabien Potencier
f54cedfe5e
added LICENSE files for the subtree repositories
2011-02-22 18:58:15 +01:00
Kris Wallsmith
7c794b349d
[HttpKernel] fixed typo
2011-02-22 07:38:03 -08:00
Fabien Potencier
cef86a3771
[HttpKernel] added a way to change the ESI cache strategy
2011-02-22 13:50:26 +01:00
Kris Wallsmith
a0bae94f88
[HttpFoundation] updated ResponseHeaderBag to compute Cache-Control whenever any of the headers it considers changes
2011-02-21 19:57:05 -08:00
Fabien Potencier
e8144e473e
[Templating] added getPath() to TemplateReferenceInterface as it's used in the child class in FrameworkBundle
2011-02-21 19:24:27 +01:00
Fabien Potencier
fc372bc217
[HttpKernel] changed core.view event to use notifyUntil() instead of filter() -- as soon as a listener returns a Response, we are done
2011-02-21 18:24:55 +01:00
Fabien Potencier
353177d1d6
replaced Response::createRedirect by a new RedirectResponse class
2011-02-21 18:10:53 +01:00
Fabien Potencier
d94acd85f9
remove response as a service
...
The Response is not available in the DIC anymore.
When you need to create a response, create an instance of
Symfony\Component\HttpFoundation\Response instead.
As a side effect, the Controller::createResponse() and Controller::redirect()
methods have been removed and can easily be replaced as follows:
return $this->createResponse('content', 200, array('foo' => 'bar'));
return new Response('content', 200, array('foo' => 'bar'));
return $this->redirect($url);
return Response::createRedirect($url);
2011-02-21 17:36:04 +01:00
Fabien Potencier
bf20238178
fixed a bug in Response content-type auto-detection
...
Without this patch, if you call __toString() on a Response,
the content-type auto-detection would never be trigerred
as __toString() changes the default content-type.
2011-02-21 16:57:25 +01:00
Fabien Potencier
9619c7dade
[Routing] removing the routing hack where we add a / at the beginning if it does not exist
2011-02-21 10:25:22 +01:00
Fabien Potencier
8a8c733369
[HttpKernel] added the possibility to define a parent token for a token in the profiler
...
Note that this is not used yet. I make this change now because the interface needs to be changed.
2011-02-20 21:29:04 +01:00
Fabien Potencier
23e9386a0e
changed all extensions to use the default Extension::getAlias() impl
2011-02-20 08:58:37 +01:00
Ray
8e2d7edb8c
Attempt to create a reasonable default based on the rules enforced in
...
src/Symfony/Component/HttpKernel/bootstrap.php
from commit: 14aa95ba21
2011-02-20 08:53:53 +01:00
Jeremy Mikola
608e443c97
[Config] Create VariableNode, which mimics ScalarNode but omits type-checking
...
This allows for configuration options that must accept arbitrary variables. Even if the node's value is an array, VariableNode will not perform any special processing/merging as is done for ArrayNode. It functionally behaves like a ScalarNode.
2011-02-20 00:59:18 -05:00
Fabien Potencier
b44d044b0a
[HttpKernel] removed the bootstrap files as they do not belong to the component
...
As these files are just about optimizing the performance,
they are now part of the sandbox and the upcoming standard
Symfony distribution.
It should also make your IDE happier!
2011-02-19 17:17:38 +01:00
Christophe Coevoet
fc9ff68052
Fixed path for finalization errors when using a prototype
2011-02-19 16:04:53 +01:00
Fabien Potencier
f849353118
Merge remote branch 'weaverryan/config_definition_changes'
...
* weaverryan/config_definition_changes:
[SecurityBundle] Allowing the main Configuration tree to allow "factories" without a validation exception.
[SecurityBundle] Removing an old configuration key in a test - caught by the Configuration validation.
[SecurityBundle] Adding the ignoreExtraFields option to the factories tree so that there aren't validation errors on all the other unknown fields.
[Config] Adding an ignoreExtraKeys options, which allows you to let options simply be ignore without throwing a validation exception.
[Config] Reverting some meaningless changes that are no longer needed to minimize the true diff of the changes. Increasing the test precision.
[Config] Reverting the preventExtraKeys option. This is a revert of functionality that would have allowed "unnamed" children to be added to an array node.
[Config] Moving the removal of the key attribute on ArrayNode onto the setKeyAttribute() method per Johannes.
[Config] Renaming the key attribute removal property for consistency per Johannes' recommendation. Also fixing a PHPDoc typo per Stof.
[SwiftmailerBundle] Removing unnecessary "enabled" key in a test.
[FrameworkBundle] Removing the "namespace" key when it's defined in its own weird location in XML. This prevents that key, which we move in this same location, from looking like an invalid option during validation.
[Config] Renaming NodeBuilder::nodeBuilder() to NodeBuilder::builder() due to the fact that PHP can get confused when you have a __construct() method *and* a method that has the same name as the class (looks like two constructors to PHP).
[Config] Making the option to remove a key attribute optional.
[Config] Renaming the NodeBuilder::addNodeBuilder() to simply NodeBuilder::nodeBuilder() to be consistent with the other names: node(), arrayNode().
[Config] Making changes per the recent movement of the Config builder into the Config component.
[DependencyInjection] Renaming allowUnnamedChildren to preventExtraKeys. Also moved the place where validation of extra configs occurs.
[DependencyInjection] Being sure to remove XML-remapped singular options and key attribute options after processing.
[DependencyInjection] Adding a NodeBuilder::addNodeBuilder() method that helps achieve a fluid interface when a pre-built NodeBuilder needs to be added.
[DependencyInjection] Initial implementation of an allowUnnamedChildren method on NodeBuilder. Also added an "extra field" exception.
2011-02-19 15:32:41 +01:00
Fabien Potencier
2c45611f4e
fixed WDT link to the profiler
2011-02-19 14:11:18 +01:00
Fabien Potencier
dff3585162
fixed profiler when using ESI in dev env
2011-02-19 12:18:49 +01:00
Ryan Weaver
026ab6c6ce
[Config] Adding an ignoreExtraKeys options, which allows you to let options simply be ignore without throwing a validation exception.
...
I had thought that this was unnecessary - when would you ever want to just let "extra" options fail silently?
But, the SecurityExtension takes advantage of this by creating two separate config trees. The first tree looks for just one particular value on the configuration array and ignores the rest. So, there *is* a use-case for allowing all extra fields to simply be ignored, though this should not be the norm.
2011-02-18 13:31:14 -06:00
Ryan Weaver
d2971e0f5f
[Config] Reverting some meaningless changes that are no longer needed to minimize the true diff of the changes. Increasing the test precision.
2011-02-18 13:08:53 -06:00
Ryan Weaver
6f17b6d58e
[Config] Reverting the preventExtraKeys option. This is a revert of functionality that would have allowed "unnamed" children to be added to an array node.
...
We decided that this is not necessary and that it's leaving too many things wide open. Instead, in these cases where we have an array with unknown items, a prototype should be used.
Further functionality will need to be added later to allow you to specify a few nodes that you *do* know about under an array and then also specify a prototype to catch everything else.
2011-02-18 12:59:27 -06:00
Ryan Weaver
6d24d37b16
[Config] Moving the removal of the key attribute on ArrayNode onto the setKeyAttribute() method per Johannes.
...
This is more consistent with how this was handled elsewhere, and it really is an "option" on the keyAttribute idea.
2011-02-18 08:41:30 -06:00
Ryan Weaver
48459e9082
[Config] Renaming the key attribute removal property for consistency per Johannes' recommendation. Also fixing a PHPDoc typo per Stof.
2011-02-18 08:38:09 -06:00
Ryan Weaver
d6617f6fba
[Config] Renaming NodeBuilder::nodeBuilder() to NodeBuilder::builder() due to the fact that PHP can get confused when you have a __construct() method *and* a method that has the same name as the class (looks like two constructors to PHP).
2011-02-18 07:31:00 -06:00
Ryan Weaver
ea768fe6fc
[Config] Making the option to remove a key attribute optional.
...
This is *usually* what you want (and is defaulted this way). If you have an entry in an array *just* so it can become the key to that entry later, then you shouldn't normally still need it in the resulting array.
The importance of this comes in with validation. Since we're throwing an exception if you have any unrecognized options, the presence of the "key" field in the resulting array will cause issues when it's not needed.
2011-02-18 07:15:59 -06:00
Ryan Weaver
554628cf5b
[Config] Renaming the NodeBuilder::addNodeBuilder() to simply NodeBuilder::nodeBuilder() to be consistent with the other names: node(), arrayNode().
2011-02-18 07:00:03 -06:00
Ryan Weaver
e7c098e8a2
[DependencyInjection] Renaming allowUnnamedChildren to preventExtraKeys. Also moved the place where validation of extra configs occurs.
2011-02-18 06:52:44 -06:00
Ryan Weaver
fd5cdfc18f
[DependencyInjection] Being sure to remove XML-remapped singular options and key attribute options after processing.
...
This prevents these keys from being validated as extra fields.
2011-02-18 06:52:44 -06:00
Ryan Weaver
bd15ddda96
[DependencyInjection] Adding a NodeBuilder::addNodeBuilder() method that helps achieve a fluid interface when a pre-built NodeBuilder needs to be added.
2011-02-18 06:51:56 -06:00
Ryan Weaver
f5b1cb18e1
[DependencyInjection] Initial implementation of an allowUnnamedChildren method on NodeBuilder. Also added an "extra field" exception.
...
This allows for an array node, which has any number of child values not represented by nodes.
2011-02-18 06:51:56 -06:00
Miha Vrhovnik
9b602626eb
Added missing use statement
2011-02-18 13:48:22 +01:00
hhamon
f985da5a9c
[HttpFoundation] fix Cache-Control header when forcing the Response to have an Expires header field. The RFC2616 Bis indicates that if the Response has both max-age (or s-maxage) and Expires header field, the Cache-Control maxage wins over Expires. The previous code in ResponseHeaderBag always returned "private, max-age=0, must-revalidate" even if the Expires header field was forced.
...
This commit breaks functional tests in Symfony\Component\HttpKernel\HttpCache\HttpCacheTest.php. I tried to fix functional tests but I didn\'t manage to. For your information, the "try { } catch" block in the HttpKernel\HttpCache::lookup() method seems strange because I suspect line 274 to never leverage any exception...
2011-02-18 12:34:33 +01:00
Jordi Boggiano
3fbe366df2
[Yaml] Fix warning
2011-02-18 12:08:05 +01:00
Fabien Potencier
75238c6817
added the LICENSE file for the YAML component
2011-02-18 11:52:11 +01:00
Justin Hileman
b8c531e1fc
Add a namespace separator for console commands in Command
sub-directories.
...
Fixes a bug in `Bundle::registerCommands` with console commands in sub-directories of `Command`. `MyBundle\Command\FooCommand` worked great, but with `MyBundle\Command\Bar\BazCommand` Bundle would try to register `MyBundle\CommandBar\BazCommand` instead.
2011-02-17 19:39:21 +01:00
hhamon
b61e288e0b
[BrowserKit] fix phpdoc for Client::followRedirect()
2011-02-17 19:38:06 +01:00
hhamon
b687e52835
[DomCrawler] fix Form::getUri() when the form action attribute contains only a sharp (#) character.
2011-02-17 19:37:25 +01:00
Fabien Potencier
6b12c21261
moved DependencyInjection\Configuration to Config\Definition
2011-02-17 16:03:48 +01:00
Ryan Weaver
c5e4dfb5a6
[DependencyInjection] Adding to InvalidArgumentException messages to clarify when a service is given an invalid "tags" value.
2011-02-17 15:59:39 +01:00
Ryan Weaver
a0fc4240f9
[HttpKernel] Adding a line break to the end of the Kernel die() statements so that the output is more natural when receiving this message from the terminal.
2011-02-17 15:58:45 +01:00
Victor Berchet
0a33cbb403
[Finder] Add support for relative path
2011-02-17 07:23:55 +01:00
Christophe Coevoet
ee8ad0c4e9
Fixed previous commit to handle the case of arrays
2011-02-16 23:07:11 +01:00
Christophe Coevoet
27e2ec139d
Added the possibility to add the value in the exception message
2011-02-16 23:07:11 +01:00
Christophe Coevoet
6b4538a1c4
Added the test ifNotInArray
2011-02-16 23:07:11 +01:00
Christophe Coevoet
ef045a9433
Added missing license header in the DependenciInjection\Configuration classes
2011-02-16 23:07:11 +01:00
Christophe Coevoet
077d1921b3
Added the support of the validation in the Builder
2011-02-16 23:07:10 +01:00
Bernhard Schussek
89dbb04c63
[Validator] Made method name shorter
2011-02-16 23:05:22 +01:00
Bernhard Schussek
9569262635
[Form] Fixed date handling classes to use server timezone by default
2011-02-16 23:05:22 +01:00
Bernhard Schussek
0a260b96fb
[Form] Fixed error handling in DateTimeToArrayTransformer
2011-02-16 23:05:22 +01:00
Bernhard Schussek
df011ed1ef
[Form] Fixed isXXXWithinRange() methods in TimeField and DateField to ignore empty dropdowns
2011-02-16 23:05:22 +01:00
Bernhard Schussek
14c3518c6e
[Form] Fixed: If a DateField or TimeField is displayed with select boxes, either all or no select box must have a value selected
2011-02-16 23:05:22 +01:00
Bernhard Schussek
40acc6ac79
[Form] Fixed ChoiceField::isChoiceSelected() to differentiate between zero and empty
2011-02-16 23:05:21 +01:00
Bernhard Schussek
1593d6f75d
[Form] Added method FieldInterface::isEmpty()
2011-02-16 23:05:21 +01:00
Bernhard Schussek
f589304fe3
[Form] Added clearer error message for CSRF errors
2011-02-16 23:05:21 +01:00
Johannes M. Schmitt
53f3ff8258
[Security] adds a chain user provider
2011-02-16 23:00:27 +01:00
Johannes Schmitt
82c6844147
[Security] moved Security classes out of DoctrineBundle, cleaned-up SecurityExtension accordingly
...
Note that this commit removes the built-in support for MongoDB user providers.
This code can be moved back in once there is a stable release for MongoDB, but
for now you have to set-up that user provider just like you would set-up any
custom user provider:
security:
providers:
document_provider:
id: my.mongo.provider
2011-02-16 23:00:27 +01:00
Johannes Schmitt
dfd921822a
[Security/Http] Adds CSRF protection to the form-login
2011-02-16 23:00:27 +01:00
Johannes M. Schmitt
d22743cf3a
[Security] removed defaults from boolean columns
2011-02-16 23:00:27 +01:00
Victor Berchet
1d7f8120e0
Update code with latest Finder changes
2011-02-16 22:53:11 +01:00
Victor Berchet
bad3a97ad6
[Finder] tweak code
2011-02-16 22:51:06 +01:00
Christophe Coevoet
a5bac4b5a3
Fixed xmlloader
2011-02-15 22:41:29 +01:00
Fabien Potencier
a29a413c48
made DIC extensions members of the Container instead of static members
2011-02-15 22:22:32 +01:00
Fabien Potencier
62e3053769
refactored previous commit, fixed tests
...
How to upgrade?
For XML configuration files:
* All extensions should now use the config tag (this is just a convention as
the YAML configurations files do not use it anymore):
* The previous change means that the doctrine and security bundles now are
wrapped under a main "config" tag:
<doctrine:config>
<doctrine:orm />
<doctrine:dbal />
</doctrine:config>
<security:config>
<security:acl />
...
</security:config>
For YAML configuration files:
* The main keys have been renamed as follows:
* assetic:config -> assetic
* app:config -> framework
* webprofiler:config -> web_profiler
* doctrine_odm.mongodb -> doctrine_mongo_db
* doctrine:orm -> doctrine: { orm: ... }
* doctrine:dbal -> doctrine: { dbal: ... }
* security:config -> security
* security:acl -> security: { acl: ... }
* twig.config -> twig
* zend.config -> zend
2011-02-15 22:22:28 +01:00
Lukas Kahwe Smith
7f182bd877
implicitly load all registered bundles, all loading is now handled by load(), disable loading of an extension explcitly via setting the extension config to false (for now only Yaml is implemented)
2011-02-15 22:11:08 +01:00
Fabien Potencier
14aa95ba21
added the concept of a main DIC extension for bundles
...
This allows for better conventions and better error messages if you
use the wrong configuration alias in a config file.
This is also the first step for a bigger refactoring of how the configuration
works (see next commits).
* Bundle::registerExtensions() method has been renamed to Bundle::build()
* The "main" DIC extension must be renamed to the new convention to be
automatically registered:
SensioBlogBundle -> DependencyInjection\SensioBlogExtension
* The main DIC extension alias must follow the convention:
sensio_blog for SensioBlogBundle
* If you have more than one extension for a bundle (which should really
never be the case), they must be registered manually by overriding the
build() method
* If you use YAML or PHP for your configuration, renamed the following
configuration entry points in your configs:
app -> framework
webprofiler -> web_profiler
doctrine_odm -> doctrine_mongo_db
2011-02-15 22:11:07 +01:00
Fabien Potencier
391e00c1de
[DependencyInjection] fixed a bug when xpath() returns false
2011-02-15 22:06:52 +01:00
Pablo Godel
fa66bf4a85
rename file
2011-02-15 21:57:09 +01:00
Pablo Godel
bf09fc1065
rename file
2011-02-15 21:57:08 +01:00
Jeremy Mikola
cc4eb6b40f
[Security] Add providerKey to PreAuthenticatedToken tokens constructed by PreAuthenticatedAuthenticationProvider
2011-02-15 21:55:24 +01:00
Kris Wallsmith
c67a9a9643
[HttpFoundation] cleaned up some constructors
2011-02-15 21:51:44 +01:00
Jeremy Mikola
b8d574087f
[Security] Allow authentication tokens to hold attributes
2011-02-15 21:50:02 +01:00
Bernhard Schussek
7dbc09ed8b
[Form] Fixed reference handling in forms. Sometimes data wasn't written into the domain object, resulting in failed validation.
2011-02-15 21:39:32 +01:00
Fabien Potencier
81765f8b6a
[DependencyInjection] fixed XML loader
2011-02-15 10:09:58 +01:00
Fabien Potencier
7c8e6669f4
updated bootstrap files
2011-02-15 04:27:46 +01:00
Fabien Potencier
4972bf6350
[DependencyInjection] made getXsdValidationBasePath() and getNamespace() methods from DIC Extension class optional
...
This has been changed so that people that do not use XML for their own extensions do
not need to bother implementing these two methods.
2011-02-15 04:14:48 +01:00
John Wards
73cd26e2ca
[Serializer] added the ability to add attributes to nodes using an array key begining with @
...
Example:
array(
'foo-bar' => array(
'@id' => 1,
'@name' => 'Bar'
),
Foo' => array(
'Bar' => "Test",
'@Type' => 'test'
)
)
Parse XML now creates @ attribites for the array.
$rss = array(
"channel" => array(
"title" => "Test RSS",
"description" => "Test description",
"item" => array(
0 => array(
"title" => "Test Title 1",
"link" => "http://foo.com "
),
1 => array(
"title" => "Test Title 2",
"link" => "http://bar.com "
)
)
)
);
<channel>
<title>Test RSS</title>
<description>Test description</description>
<item>
<title>Test Title 1</title>
<link>http://foo.com </link>
</item>
<item>
<title>Test Title 2</title>
<link>http://bar.com </title>
</item>
</channel>
2011-02-14 22:20:03 +01:00
Victor Berchet
8588d55c11
[Config] Improve the component
2011-02-14 22:05:56 +01:00
Victor Berchet
af81bcabf0
[Templating] Refactor the component
2011-02-14 21:11:44 +01:00
Fabien Potencier
12f99dd066
fixed typo
2011-02-14 20:56:03 +01:00
Johannes M. Schmitt
bc05bef2b9
[Security] fixes a bug in DigestAuthenticationListener
2011-02-14 20:55:07 +01:00
Johannes M. Schmitt
44b89e5ac3
[Security] fixes a bug when clearing cookies on logout
2011-02-14 20:55:07 +01:00
Johannes Schmitt
b685b3ab4d
[Security] adds logout success handler
2011-02-14 20:55:07 +01:00
Johannes Schmitt
9e6fc0a11e
[Security] fixes a bug where authentication errors might have leaked confidential information
2011-02-14 20:55:06 +01:00
Johannes Schmitt
5c7fe8f866
[Security] simplified encoder factory implementation
2011-02-14 20:55:06 +01:00
Johannes M. Schmitt
b9f4eab5c2
[Security/Acl] added pre-generated schemas
2011-02-14 20:55:06 +01:00
Fabrice Bernhard
20e31cd3f2
[HttpKernel] Added some details for two commonly encountered errors in Kernel.php and HttpKernel.php
...
I used https://github.com/fabpot/symfony/blob/master/src/Symfony/Component/Form/PropertyPath.php#L324 as a model for the wording
2011-02-14 20:51:55 +01:00
hhamon
9a89b4628f
[CssSelector] fix phpdoc to match coding standards (int -> integer, bool -> Boolean).
2011-02-14 20:50:52 +01:00
Tim Nagel
7173764dc1
[Dependency Injection] PHPDoc
2011-02-14 11:16:04 +01:00
Jordi Boggiano
6311960511
[HttpFoundation] Minor clearCookie optimization
2011-02-14 11:15:22 +01:00
Fabien Potencier
5c905beb13
moved common configuration classes to a new Config component
2011-02-13 22:31:50 +01:00
Deni
657f90a931
[Security] Fixed missed argument in call custom handler when authentication is successful.
2011-02-13 22:27:28 +01:00
Hugo Hamon
b5972f3447
[Yaml] fix some php documentation
2011-02-13 17:48:48 +01:00
Jordi Boggiano
f5f41696ec
[Serializer] Allow for more flexible element names
2011-02-13 17:47:22 +01:00
Jordi Boggiano
8216a6ef3d
[Serializer] Added XmlEncoder::setRootNodeName
2011-02-13 17:47:22 +01:00
Fabien Potencier
cf5cfb0b51
updated bootstrap files
2011-02-13 11:24:47 +01:00
Johannes M. Schmitt
d4d2d60f7b
[DependencyInjection] minor interface change
2011-02-13 10:38:10 +01:00
dordille
205621dee8
Changed namepace use of SecurityContext to SecurityContextInterface so that constant SecurityContextInterface::LAST_USERNAME would resolve properly
...
Also changed method signature of __construct to take and instance of SecurityContextInterface instead of SecurityContext
2011-02-13 10:36:15 +01:00
Johannes M. Schmitt
3dfc09cd8d
[Security] fixes some regressions
2011-02-13 00:15:57 +01:00
Jordi Boggiano
9bcd1b3e5f
[Security] Fixed indenting
2011-02-12 22:14:16 +01:00
Johannes Schmitt
a5cfc2207c
[Security/DependencyInjection] updated SecurityBundle's configuration, some bug fixes in DIC config classes
2011-02-12 22:05:54 +01:00
Jordi Boggiano
98e035b963
[DepdenencyInjection] Prevent self-referencing aliases
2011-02-12 21:58:00 +01:00
Jeremy Mikola
b3cb02adf2
[FrameworkBundle/Routing] Add "type" option for main Router resource (and expose this in FrameworkExtension config)
...
In routing files, import statements allow an optional "type" option to hint the resources' type (e.g. for ambiguous file extensions). This adds the same type option to the FrameworkExtension config, which defines the main routing resource.
2011-02-12 21:57:27 +01:00
Christophe Coevoet
ccd630981f
Moved the exception to setDefaultValue
2011-02-12 21:56:21 +01:00
Christophe Coevoet
142212e2ba
Added a way to define the default value of a prototype for array nodes
2011-02-12 21:56:21 +01:00
Fabian Vogler
9caa17823a
Fix for SimpleXML in XmlEncoder
...
Check first for special objects like SimpleXMLElement and Traversable and the check for is_object.
2011-02-12 21:54:27 +01:00
Johannes Schmitt
9749da6e52
[Security] performance improvements of PermissionGrantingStrategy
2011-02-12 21:53:04 +01:00
Johannes Schmitt
19bbafc441
[Security] Refactored security context, moved getUser() implementation to templating
2011-02-12 21:53:04 +01:00
Johannes Schmitt
66fbbd6b17
[Security] removed __toString() from AccountInterface
2011-02-12 21:53:04 +01:00
hhamon
bd79e85928
[BrowserKit] fix phpdoc
2011-02-12 21:52:34 +01:00