Florin Patan
b552354414
Executable Finder will now try to match if a file is already in the open_basedir list before searching it thru that list
2011-06-14 13:36:01 -04:00
Victor Berchet
136b80ae63
[HttFoundation] Add File::getExtension() as \SplFileInfo::getExtension() was introduced in PHP 5.3.6
2011-06-14 18:18:43 +02:00
Victor Berchet
bdd755e45b
[Form] Fix the exception message when no block is found
2011-06-14 16:45:03 +02:00
Victor Berchet
c68c511388
[Form] Make theming form prototypes consistent (start by looking for a '_<id>_<section>' block)
2011-06-14 16:36:31 +02:00
Victor Berchet
9ec99608df
[Form] Simplify the code
2011-06-14 16:30:48 +02:00
Fabien Potencier
06614cd6ca
[Yaml] moved exceptions to their own sub-namespace (added a specific exception for the dump)
2011-06-14 16:25:26 +02:00
Fabien Potencier
a9dab719df
[Yaml] removed support for YAML 1.1 spec
2011-06-14 16:25:25 +02:00
Fabien Potencier
3859589daa
[Yaml] renamed load() to parse()
2011-06-14 16:25:25 +02:00
Fabien Potencier
9b1b9373b8
[HttpFoundation] simplified code
2011-06-14 16:08:07 +02:00
Fabien Potencier
24778553cd
[HttpFoundation] simplified code
2011-06-14 16:07:18 +02:00
Fabien Potencier
b763d667f5
merged branch lsmith77/checkIp (PR #1322 )
...
Commits
-------
2f04bdb
make checkIp() reuseable
Discussion
----------
[RequestMatcher] make checkIp() reuseable
2011-06-14 15:59:49 +02:00
Fabien Potencier
ddb0a8559d
[AsseticBundle] fixed unit tests
2011-06-14 15:53:30 +02:00
Fabien Potencier
e5ccaabefd
merged branch kriswallsmith/assetic/cssembed-config (PR #1321 )
...
Commits
-------
ee8f34e
[AsseticBundle] added more cssembed config options (closes #1249 )
Discussion
----------
[AsseticBundle] added more cssembed config options (closes #1249 )
2011-06-14 15:45:31 +02:00
Fabien Potencier
be3587d165
merged branch kriswallsmith/assetic/lazy-finder (PR #1320 )
...
Commits
-------
4016dfb
[AsseticBundle] moved ExecutableFinder back into a closure so it's only called if needed
Discussion
----------
[AsseticBundle] moved ExecutableFinder back into a closure
[AsseticBundle] moved ExecutableFinder back into a closure so it's only called if needed
---------------------------------------------------------------------------
by fabpot at 2011/06/14 05:46:14 -0700
Does it relate to #1319 ?
---------------------------------------------------------------------------
by kriswallsmith at 2011/06/14 05:47:25 -0700
It's related, yes, but I don't think it's a solution for the issue.
---------------------------------------------------------------------------
by dlsniper at 2011/06/14 06:00:55 -0700
The issue in #1319 has been fixed with this: 0d54f5c21e
It's in the latest master tree but finding that file only when needed is also a good idea.
2011-06-14 15:45:17 +02:00
Fabien Potencier
397fad3810
[Routing] added missing public @api
2011-06-14 15:40:43 +02:00
Fabien Potencier
72483f946b
[Routing] tagged the public @api
2011-06-14 15:35:32 +02:00
Lukas Kahwe Smith
2f04bdb3c5
make checkIp() reuseable
2011-06-14 15:31:52 +02:00
Fabien Potencier
59301a93d7
[ClassLoader] tweaked public @api
2011-06-14 15:20:59 +02:00
Fabien Potencier
54e054b2d1
[DomCrawler] tweaked public @api
2011-06-14 15:16:43 +02:00
Kris Wallsmith
ee8f34e7ed
[AsseticBundle] added more cssembed config options ( closes #1249 )
2011-06-14 05:48:51 -07:00
Fabien Potencier
dd23402e94
[EventDispatcher] tweaked public @api
2011-06-14 14:40:48 +02:00
Fabien Potencier
c6cc427e4b
[EventDispatcher] added a way to set the priority for event subscribers
2011-06-14 14:40:27 +02:00
Fabien Potencier
b76a1c3077
[Finder] added a convenience method Finder::create()
2011-06-14 14:18:24 +02:00
Fabien Potencier
1ad5bfd723
[CssSelector] renamed SyntaxError
2011-06-14 14:12:03 +02:00
Kris Wallsmith
4016dfbb84
[AsseticBundle] moved ExecutableFinder back into a closure so it's only called if needed
2011-06-14 04:22:47 -07:00
Fabien Potencier
d87c96bb65
[CssSelector] ...
2011-06-14 13:06:37 +02:00
Fabien Potencier
a232c148eb
fixed CS
2011-06-14 12:54:32 +02:00
Fabien Potencier
a7c1ff8558
merged branch ajessu/time_validator (PR #1254 )
...
# Commits
ca52a04
[Validator] Allow DateTime objects as valid Times
# Discussion
## [Validator] Allow DateTime objects as valid Times
Also added tests for `DateTime` objects as valid on `Date` and `Time` constraints.
I didn't include the test for the `DateTime` constraint, as it's already included in this PR:
https://github.com/symfony/symfony/pull/1085
---------------------------------------------------------------------------
## fabpot @ 2011/06/09 09:07:21 -0700
I don't think it makes sense to use a \DateTime instance to represent a Time.
---------------------------------------------------------------------------
## ajessu @ 2011/06/09 09:33:20 -0700
If I have an entity with a doctrine type `Time`:
Time (DateTime instance where only H:i:s get persisted)
```php
<?php
/**
* @ORM\Column(type="time")
* @Assert\Time()
*/
protected $startTime;
```
and I create a form out of this Entity, a `DateTime` object is passed when the form is submitted.
This generates an `UnexpectedTypeException`.
I just made this change to match the `Date` validator with the doctrine type `Date`, which also shares this behavior:
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Validator/Constraints/DateValidator.php#L28
Date (DateTime instance where only Y-m-d get persisted)
2011-06-14 12:08:41 +02:00
Victor Berchet
38b3b7474f
[HttpKernel] Fix and test previous commit
2011-06-14 11:54:55 +02:00
Victor Berchet
ac0c00c6e8
[HttpFoundation] Make File extends \SplFileInfo
2011-06-14 10:47:04 +02:00
Victor Berchet
87ca9f3a52
[Validation] some tweaks and phpDoc
2011-06-14 09:40:26 +02:00
Victor Berchet
4e3e2768fb
[Form] Make the prototype view child of the collection view
2011-06-14 09:33:19 +02:00
Fabien Potencier
2ce3cfad18
[Form] made it possible to translate the empty value of Choice fields
2011-06-14 08:33:48 +02:00
Fabien Potencier
c364008a3b
[Form] allowed an empty value to be displayed for choices even when required is true
...
Rules are as follows:
* If multiple is true, then the empty_value is ignored
* If not, and if the field is not required, the empty_value is set to the empty string by default and displayed
* If the field is required, and if the user explicitely set the empty_value, then it is displayed
2011-06-14 08:27:19 +02:00
Fabien Potencier
b29597a585
Merge remote branch 'stof/form_collection'
...
* stof/form_collection:
[TwigBridge] fixed the check for the collection prototype in the form theme
2011-06-14 07:48:17 +02:00
Ryan Weaver
52cbbfe0d3
[HttpKernel] Adding small example of how the extension alias is auto-generated
2011-06-13 17:16:49 -05:00
Christophe Coevoet
df0039f701
[TwigBridge] fixed the check for the collection prototype in the form theme
2011-06-14 00:15:50 +02:00
Fabien Potencier
a12ea12fc1
fixed CS
2011-06-13 18:54:20 +02:00
Fabien Potencier
0b7a19e6fd
[DoctrineBundle] removed old code
2011-06-13 18:38:56 +02:00
Fabien Potencier
d16a708cc8
[Form] simplified file type class
...
File uploads documentation is here:
https://github.com/symfony/symfony-docs/pull/400
2011-06-13 18:11:18 +02:00
Fabien Potencier
59f0602aef
Merge remote branch 'kriswallsmith/assetic/fix-type-hint'
...
* kriswallsmith/assetic/fix-type-hint:
[AsseticBundle] fixed an incorrect type hint
2011-06-13 17:37:08 +02:00
Kris Wallsmith
dc2da52790
[AsseticBundle] fixed an incorrect type hint
2011-06-13 08:27:11 -07:00
Kris Wallsmith
16e3aa3dc3
[AsseticBundle] added FileResource test
2011-06-13 08:17:05 -07:00
Kris Wallsmith
1890dab212
[AsseticBundle] added custom coalescing logic to work with logical template names
2011-06-13 08:17:05 -07:00
Fabien Potencier
33baf9d8ad
[FrameworkBundle] partially reverted previous merge
2011-06-13 17:00:18 +02:00
Fabien Potencier
459678a0e9
Merge remote branch 'vicb/twig-templates'
...
* vicb/twig-templates:
[FrameworkBundle] Fix previous commit
[TwigBundle] Optimize the FilesystemLoader
2011-06-13 16:54:21 +02:00
Fabien Potencier
16e6cea240
[DoctrineBundle] fixed generation of the first entity in a bundle ( closes #1271 )
2011-06-13 16:29:04 +02:00
Fabien Potencier
196350b892
Merge remote branch 'djama/patch-1'
...
* djama/patch-1:
call header() with replace=false, to provide the possibility of sending mutiple headers of the same type.
2011-06-13 12:19:40 +02:00
Fabien Potencier
9c1f999e21
[FrameworkBundle] fixed typo
2011-06-13 11:58:58 +02:00
Fabien Potencier
0c29a25d89
Merge remote branch 'kriswallsmith/form/collection-proto'
...
* kriswallsmith/form/collection-proto:
added script[type="text/html"] collection prototype to form themes
[Form] removed collection prototype from form tree
2011-06-13 11:51:18 +02:00
Fabien Potencier
973b323b12
Merge remote branch 'vicb/form-render-fix'
...
* vicb/form-render-fix:
[Form][TwigBridge] Improve the cache layer by caching blocks instead of templates
[Form][TwigBridge] Make the template cache more efficient
[Form][TwigBridge] Fix rendering
2011-06-13 11:48:44 +02:00
Fabien Potencier
41b7190efc
Revert "[Form] changed the way default type names are created to avoid collisions"
...
This reverts commit d044498cde
.
The reason for reverting is that the name is actually used to customize
the template on a per field basis:
{% block _post_excerpt_widget %}
***{{ block('text_widget') }}***
{% endblock %}
Here, post is the name of the Type.
2011-06-13 11:47:21 +02:00
Fabien Potencier
0fc56346f7
Merge remote branch 'AurelC2G/fix-charset'
...
* AurelC2G/fix-charset:
[HttpFoundation] Fixed indentation
[HttpFoundation] Fixed charset always being set to UTF-8
2011-06-13 11:22:46 +02:00
Fabien Potencier
b72f980fac
Merge remote branch 'brikou/phpdoc_formType'
...
* brikou/phpdoc_formType:
[Form] added phpdoc (inherit) for types
2011-06-13 11:20:57 +02:00
Fabien Potencier
11761e48a5
Merge remote branch 'brikou/phpdoc_session'
...
* brikou/phpdoc_session:
[Session] added phpdoc about flash messages
2011-06-13 11:20:35 +02:00
Fabien Potencier
dbac5324ee
Merge remote branch 'pzwosta/php-scope-request'
...
* pzwosta/php-scope-request:
[AsseticBundle] fixed ScopeWideningInjectionExc in prod evn using php templates
2011-06-13 11:15:48 +02:00
Fabien Potencier
0ec604cb1e
Merge remote branch 'mschneid/master'
...
* mschneid/master:
Fix array access
2011-06-13 11:12:46 +02:00
Fabien Potencier
2ba7e4207c
Merge remote branch 'craue/patch-4'
...
* craue/patch-4:
typo
2011-06-13 11:09:38 +02:00
Kris Wallsmith
a3ed5e3f84
[AsseticBundle] changed file resource string value to logical template name
2011-06-12 19:12:22 -07:00
Lee McDermott
49dd558444
Couple more CS fixes
2011-06-13 02:40:21 +01:00
Michael Schneider
fdab1955f8
Fix array access
...
If you provide only one field as string you're not able to access the $constraint->fields as an array. Use $fields instead.
2011-06-12 23:48:17 +02:00
Christian Raue
99eb3a120d
typo
2011-06-12 11:59:47 -07:00
Victor Berchet
dbea68effc
[FrameworkBundle] Fix previous commit
2011-06-12 18:37:54 +02:00
Victor Berchet
acd2cf11d8
[TwigBundle] Optimize the FilesystemLoader
2011-06-12 14:49:18 +02:00
Victor Berchet
b19052f879
[Form][TwigBridge] Improve the cache layer by caching blocks instead of templates
2011-06-12 12:56:25 +02:00
Victor Berchet
9135f963db
[Form][TwigBridge] Make the template cache more efficient
2011-06-12 12:15:48 +02:00
Victor Berchet
8677aa3dce
[Form][TwigBridge] Fix rendering
2011-06-12 11:33:17 +02:00
Peter Zwosta
c0e120e072
[AsseticBundle] fixed ScopeWideningInjectionExc in prod evn using php templates
...
The definition "assetic.helper.static" references the service "templating.helper.assets" which belongs to a narrower scope. Generally, it is safer to either move "assetic.helper.static" to scope "request" or alternatively rely on the provider pattern by injecting the container itself, and requesting the service "templating.helper.assets" each time it is needed. In rare, special cases however that might not be necessary, then you can set the reference to strict=false to get rid of this error.
2011-06-11 19:49:13 +02:00
Kris Wallsmith
5b0f1da074
[HttpKernel] made WebTestCase methods static
2011-06-11 08:50:27 -07:00
Lee McDermott
5a986bfc27
Add $keysCount & minor CS fix
2011-06-11 16:43:28 +01:00
Lee McDermott
91f4097a09
[Routing] Better nesting for RouteCollections in dumped URL matcher classes
...
With this change, a route prefixed with '/blogger' will be nested inside '/blog' (for example)
2011-06-11 16:11:55 +01:00
Brikou CARRE
66ae994528
[Form] added phpdoc (inherit) for types
2011-06-11 11:59:28 +02:00
Brikou CARRE
3dff029c37
[Session] added phpdoc about flash messages
2011-06-11 11:44:30 +02:00
Aurélien Fredouelle
6ae2bdeabd
[HttpFoundation] Fixed indentation
2011-06-11 10:24:44 +02:00
Aurélien Fredouelle
1e50a553d2
[HttpFoundation] Fixed charset always being set to UTF-8
...
Fixes #1281
2011-06-11 10:22:26 +02:00
Joseph Bielawski
6bb9075b35
Remove unused code from DateTime constraint
2011-06-11 01:18:16 -07:00
Fabien Potencier
ca013311bd
[TwigBundle] fixed XSD
2011-06-11 08:00:55 +02:00
Fabien Potencier
355f802546
[TwigBundle] fixed tests
2011-06-11 07:54:10 +02:00
Fabien Potencier
96045739b1
[TwigBundle] removed the extensions setting
2011-06-11 07:50:14 +02:00
Fabien Potencier
afa30d9864
Merge remote branch 'theinterned/patch-1'
...
* theinterned/patch-1:
made logoutPath localizable as well
storing localized targetPath in a string as opposed to updating the attribute
In the spirit of 882a8e3f09
allow for localized logout target url
2011-06-11 07:39:04 +02:00
Fabien Potencier
c79e51c9aa
Merge remote branch 'kriswallsmith/form/lazier-csrf-token'
...
* kriswallsmith/form/lazier-csrf-token:
[Form] fixed xpath
[Form] moved csrf listener to its own class
fix issue with csrf token not present on collection fields because of resize listener
2011-06-11 07:36:51 +02:00
Fabien Potencier
8d58826085
[Routing] fixed unit tests for previous commit
2011-06-11 07:33:55 +02:00
Fabien Potencier
96554e645a
Merge remote branch 'lmcd/master'
...
* lmcd/master:
$code referenced but not defined in compileRoute()
[Routing] Optimised the PHP URL matcher dumper The cached URL matcher classes contain some unneeded logic. Consider the following example:
2011-06-11 07:32:22 +02:00
Lee McDermott
2c0efa7488
$code referenced but not defined in compileRoute()
2011-06-11 04:38:11 +01:00
Lee McDermott
10bb4ff25e
[Routing] Optimised the PHP URL matcher dumper
...
The cached URL matcher classes contain some unneeded logic. Consider the following example:
if (0 === strpos($pathinfo, '/Blog')) {
// blog_index
if (0 === strpos($pathinfo, '/Blog') && preg_match('#^/Blog/(?P<slug>[^/]+?)$#x', $pathinfo, $matches)) {
return array_merge($this->mergeDefaults($matches, array ( '_action' => 'index',)), array('_route' => 'blog_index'));
}
}
The 2nd strpos is not required, as we have already satisfied this condition in the parent if statement.
My change will produce the following code for the same routing setup::
if (0 === strpos($pathinfo, '/Blog')) {
// blog_index
if (preg_match('#^/Blog/(?P<slug>[^/]+?)$#x', $pathinfo, $matches)) {
return array_merge($this->mergeDefaults($matches, array ( '_action' => 'index',)), array('_route' => 'blog_index'));
}
}
2011-06-11 01:20:22 +01:00
Ned Schwartz
47df88bfc9
made logoutPath localizable as well
2011-06-10 15:04:50 -07:00
Ned Schwartz
8fd4158468
storing localized targetPath in a string as opposed to updating the attribute
2011-06-10 14:32:10 -07:00
Kris Wallsmith
fe4382eb73
[Form] moved csrf listener to its own class
2011-06-10 13:00:44 -07:00
Ned Schwartz
17b7b558ce
In the spirit of 882a8e3f09
allow for localized logout target url
2011-06-10 12:24:27 -07:00
Bulat Shakirzyanov
cb53414e91
fix issue with csrf token not present on collection fields because of resize listener
2011-06-10 11:12:35 -07:00
Fabien Potencier
d67e25c003
Merge remote branch 'richardmiller/fixed_container_debug_command_help'
...
* richardmiller/fixed_container_debug_command_help:
[FrameworkBundle] Added missing word to ContainerDebugCommand help message.
2011-06-10 19:50:58 +02:00
Fabien Potencier
f857ad2a31
Merge remote branch 'stof/monolog_bubbling'
...
* stof/monolog_bubbling:
[MonologBundle] Changed the default bubbling behavior. Fixes #1268
2011-06-10 19:49:41 +02:00
Christophe Coevoet
5458baf465
[MonologBundle] Changed the default bubbling behavior. Fixes #1268
2011-06-10 19:44:10 +02:00
Fabien Potencier
293ba3426a
[DoctrineBridge] fixed guesser
2011-06-10 19:41:49 +02:00
Richard Miller
346cbf352a
[FrameworkBundle] Added missing word to ContainerDebugCommand help message.
2011-06-10 17:56:06 +01:00
djama
96359fb86d
call header() with replace=false, to provide the possibility of sending mutiple headers of the same type.
2011-06-10 09:16:33 -07:00
Fabien Potencier
4da7909f9a
Merge remote branch 'kriswallsmith/form/is-valid-read-only'
...
* kriswallsmith/form/is-valid-read-only:
[Form] fixed isValid() on readOnly forms that have children
2011-06-10 16:32:50 +02:00
Kris Wallsmith
8d55df42de
[Form] fixed isValid() on readOnly forms that have children
2011-06-10 07:11:50 -07:00
Fabien Potencier
37cd020040
Merge remote branch 'lsmith77/serializer_tweaks'
...
* lsmith77/serializer_tweaks: (22 commits)
clarified that BC is broken in the Serializer component
added UPDATE notes for Serializer component changes
fix tests
marked public api
more encoder lazy loading tweaks
always use getEncoder() to enable lazy loading
cosmetic tweak
removed setEncoder/removeEncoder/addNormalizer/removeNormalizer
SerializerAwareInterface and DecoderInterface do not implement EncoderInterface anymore
handle non objects
moved the methods that can later be moved to a Builder to the bottom
use getEncoder inside encode/decode
made serialize/deserialize/encode/decode final
added Constructor
added Exception's from SerializerBundle
made (de)normalizeObject() private
renamed hasEncoder/hasDecoder to supportsSerialization/supportsDeserialization
notice fixes
typo fixes
all encoders implement EncoderInterface
...
2011-06-10 15:56:35 +02:00
Fabien Potencier
44816ebca0
Merge remote branch 'Infranology/minor-code-simplification'
...
* Infranology/minor-code-simplification:
[Form] minor code simplification
2011-06-10 15:55:26 +02:00
Fabien Potencier
09ee01501d
Merge remote branch 'lmcd/master'
...
* lmcd/master:
Added an optimisation for PHP-FPM (FastCGI Process Manager). As soon as a full Response is dispatched to the browser, the HTTP connection is closed, but the script stays alive on FPM servers.
2011-06-10 15:52:35 +02:00
Fabien Potencier
e92669eb47
Merge remote branch 'brikou/phpdoc_cookie'
...
* brikou/phpdoc_cookie:
[HttpFoundation] added phpdoc + exception fix
2011-06-10 15:51:46 +02:00
Fabien Potencier
8e6d287614
Merge remote branch 'hhamon/doctrine_metadatafactory_fix'
...
* hhamon/doctrine_metadatafactory_fix:
[DoctrineBundle] fixed missing backslashe.
[DoctrineBundle] simplified getClassMetadataFactoryClass() method in both DisconnectedMetadataFactory and MetadataFactory classes.
[DoctrineBundle] added new DisconnectedMetadataFactory class that is now used in the doctrine:generate:entities command instead of the MetadataFactory class.
2011-06-10 15:51:27 +02:00
Fabien Potencier
03a05661f9
[Form] fixed more cases where the delegating validator did not match the validator paths
2011-06-10 15:35:49 +02:00
Fabien Potencier
1daca76197
[Form] unified the way form and data path are created
2011-06-10 15:35:35 +02:00
Hugo Hamon
aa6645d955
[DoctrineBundle] fixed missing backslashe.
2011-06-10 14:55:47 +02:00
Hugo Hamon
1da8922eab
[DoctrineBundle] simplified getClassMetadataFactoryClass() method in both DisconnectedMetadataFactory and MetadataFactory classes.
2011-06-10 14:27:55 +02:00
Hugo Hamon
ce3839a3ea
[DoctrineBundle] added new DisconnectedMetadataFactory class that is now used in the doctrine:generate:entities command instead of the MetadataFactory class.
2011-06-10 14:24:31 +02:00
Fabien Potencier
7de4d28a05
Merge remote branch 'yethee/delegating_validator'
...
* yethee/delegating_validator:
[Form] Fixed path mapping for DelegatingValidator
2011-06-10 13:54:44 +02:00
Brikou CARRE
896c294b58
[HttpFoundation] added phpdoc + exception fix
2011-06-10 08:59:49 +02:00
Fabien Potencier
25c3fee1f2
[FrameworkBundle] removed obsolete code
2011-06-09 22:15:58 +02:00
Lee McDermott
7e89a6ad41
Added an optimisation for PHP-FPM (FastCGI Process Manager).
...
As soon as a full Response is dispatched to the browser, the HTTP connection is closed, but the script stays alive on FPM servers.
2011-06-09 19:11:02 +01:00
Eriksen Costa
c9acf2e60c
[Form] minor code simplification
2011-06-09 13:24:55 -03:00
Fabien Potencier
ea93e4cafa
[Form] added a circular reference safeguard for form type
2011-06-09 17:58:22 +02:00
Fabien Potencier
d044498cde
[Form] changed the way default type names are created to avoid collisions
2011-06-09 16:43:02 +02:00
Albert Jessurum
ca52a04f5e
[Validator] Allow DateTime objects as valid Times
2011-06-09 15:47:51 +02:00
Lukas Kahwe Smith
8ef83d548b
marked public api
2011-06-09 14:51:26 +02:00
Lukas Kahwe Smith
f67b3f508e
more encoder lazy loading tweaks
2011-06-09 14:51:26 +02:00
Lukas Kahwe Smith
4b3f6215b7
always use getEncoder() to enable lazy loading
2011-06-09 14:51:26 +02:00
Lukas Kahwe Smith
64c8a1ab8c
cosmetic tweak
2011-06-09 14:51:25 +02:00
Lukas Kahwe Smith
c54ab34363
removed setEncoder/removeEncoder/addNormalizer/removeNormalizer
2011-06-09 14:51:25 +02:00
Lukas Kahwe Smith
8473e3e56a
SerializerAwareInterface and DecoderInterface do not implement EncoderInterface anymore
2011-06-09 14:51:25 +02:00
Lukas Kahwe Smith
b9bc5f9b20
handle non objects
2011-06-09 14:51:25 +02:00
Lukas Kahwe Smith
c470d8b273
moved the methods that can later be moved to a Builder to the bottom
2011-06-09 14:51:25 +02:00
Lukas Kahwe Smith
5b3ccba2a1
use getEncoder inside encode/decode
2011-06-09 14:51:25 +02:00
Lukas Kahwe Smith
7ecd5e7590
made serialize/deserialize/encode/decode final
2011-06-09 14:50:55 +02:00
Lukas Kahwe Smith
52b8cb622d
added Constructor
2011-06-09 14:50:55 +02:00
Lukas Kahwe Smith
46da5ff069
added Exception's from SerializerBundle
2011-06-09 14:50:55 +02:00
Lukas Kahwe Smith
1eecf1a5d1
made (de)normalizeObject() private
2011-06-09 14:50:55 +02:00
Lukas Kahwe Smith
054e41573e
renamed hasEncoder/hasDecoder to supportsSerialization/supportsDeserialization
2011-06-09 14:50:55 +02:00
Lukas Kahwe Smith
900dda8239
notice fixes
2011-06-09 14:50:55 +02:00
Lukas Kahwe Smith
9fdfac81ec
typo fixes
2011-06-09 14:50:55 +02:00
Lukas Kahwe Smith
c3acd5df54
all encoders implement EncoderInterface
2011-06-09 14:50:54 +02:00
Lukas Kahwe Smith
e694397f16
removed redundant management of encoders and decoders, aka assume all decoders are also encoders
...
anything else is a total edge case that doesnt break with this change. it just means that for that edge case it will not be possible to "statically" determine if the encoder doesnt actually support encoding.
2011-06-09 14:50:54 +02:00
Lukas Kahwe Smith
34b5a67987
expand interface
...
actually the main methods I am looking for is hasDecoder() and getEncoder() to be able to check if there is a Decoder to decode the Request body as well as if the encoder implements the TemplatingAwareInterface
2011-06-09 14:50:25 +02:00
Fabien Potencier
f3cafcb355
merged symfony/form-simplification
2011-06-09 13:29:31 +02:00
Fabien Potencier
852a4c9c6a
[Form] removed the file upload temporary storage feature
...
The current implementation is not ready for inclusion in 2.0. It has several
known problems (security, not possible to disable it, not "cloud-compatible",
...) and it's not a must have feature anyway.
Some references:
* Security issue in FileType: https://github.com/symfony/symfony/issues/1001
* Validation fails on file, still stored in TemporaryStorage: https://github.com/symfony/symfony/issues/908
* Add a size argument & ability to configure TemporaryStorage: https://github.com/symfony/symfony/pull/748
This feature should be reworked and discussed for inclusion in 2.1.
2011-06-09 12:44:36 +02:00
Fabien Potencier
1e8cd6d34d
[HttpFoundation] removed the leading . for extensions
2011-06-09 12:42:42 +02:00
Fabien Potencier
2ee0c284bc
[Form] fixed CS
2011-06-09 11:40:24 +02:00
Fabien Potencier
fd97dd0059
[Form] text is now the default type when not explicitely set and when no data class is set
2011-06-09 11:37:06 +02:00
Fabien Potencier
a6a3789a54
[Form] tweaked an error message
2011-06-09 11:33:25 +02:00
Fabien Potencier
d9500418cd
[Form] tweaked an error message
2011-06-09 11:32:20 +02:00
Hugo Hamon
6e96accf3a
[DoctrineBundle] fixed MetadataFactory::getMetadataForClass() to always return a ClassMetadataCollection object instead of NULL.
2011-06-09 11:13:42 +02:00
Fabien Potencier
88184394b5
[Form] tweaked the error message when a form with a file upload does not have the enctype attribute correctly configured
2011-06-09 08:36:40 +02:00
Fabien Potencier
0a7ce63d8f
Merge remote branch 'vicb/twig-theme-inheritance'
...
* vicb/twig-theme-inheritance:
[Form] Further tweaks of the twig theme inheritance
[Form] Fix twig theme inheritance
2011-06-09 07:46:50 +02:00
Fabien Potencier
17cd08dc6c
fixed CS
2011-06-08 19:56:59 +02:00
Fabien Potencier
e685b5fc21
Merge remote branch 'yethee/doctrine_bridge'
...
* yethee/doctrine_bridge:
[DoctrineBridge] Removed all options of the parent type
[DoctrineBridge] Removed unneeded use statement
[DoctrineBridge] Fixed typo
[DoctrineBridge] Removed duplicating options in EntityType
2011-06-08 19:51:57 +02:00
Fabien Potencier
e0b768bfc0
[DoctrineBridge] fixed typo
2011-06-08 19:34:26 +02:00
Deni
70477c4995
[DoctrineBridge] Removed all options of the parent type
2011-06-08 20:39:16 +04:00
Deni
40d358e7cb
[DoctrineBridge] Removed unneeded use statement
2011-06-08 19:01:33 +04:00
Deni
1a75b7c8ca
[DoctrineBridge] Fixed typo
2011-06-08 18:52:54 +04:00
Deni
3bbec2e6a7
[DoctrineBridge] Removed duplicating options in EntityType
2011-06-08 18:46:38 +04:00
Kris Wallsmith
0df338fdb1
added script[type="text/html"] collection prototype to form themes
2011-06-08 09:41:12 -04:00
Fabien Potencier
d528b7481f
fixed typo
2011-06-08 15:20:37 +02:00
Victor Berchet
5060702669
[Form] Further tweaks of the twig theme inheritance
2011-06-08 14:46:34 +02:00
Kris Wallsmith
5ecb252ddf
[Form] removed collection prototype from form tree
2011-06-08 08:34:20 -04:00
Victor Berchet
bee505a4bf
[Form] Fix twig theme inheritance
2011-06-08 14:21:09 +02:00
Fabien Potencier
566511e9e7
moved some FormView methods to FormUtil where they really belongs
2011-06-08 14:07:04 +02:00
Fabien Potencier
1aabc5da64
fixed CS
2011-06-08 12:16:48 +02:00
Fabien Potencier
62e4342a86
fixed CS
2011-06-08 12:12:55 +02:00
Fabien Potencier
0af4743583
[HttpFoundation] fixed Request::getFormat() when the mime-type has some optional parameter ( closes #1235 )
2011-06-08 11:12:57 +02:00
Fabien Potencier
f16e206cd7
[HttpFoundation] added missing CONTENT_TYPE and CONTENT_LENGTH to the Request headers (these two headers are not prefixes with HTTP_ -- as per the CGI/1.1 spec, closes #1234 )
2011-06-08 11:04:41 +02:00
Fabien Potencier
188e74273a
[Security] fixed sub-requests creation ( closes #1212 )
2011-06-08 10:36:14 +02:00
Fabien Potencier
9118fcee14
[HttpFoundation] fixed CS
2011-06-08 10:35:47 +02:00
Fabien Potencier
740b2ac833
[Console] added a --no-ansi option for disable ANSI output ( closes #1238 )
2011-06-08 10:26:48 +02:00
Fabien Potencier
12dd52b00b
[FrameworkBundle] removed the --without-debug option for cache:clear (it now inherits the debug flag from the parent Kernel)
2011-06-08 10:16:10 +02:00
Fabien Potencier
2d91183d86
[DoctrineBridge] fixed field guesser
2011-06-08 09:45:44 +02:00
Fabien Potencier
6881f01fd6
Merge remote branch 'CodeMeme/default-validator-improved-synchronized-error'
...
* CodeMeme/default-validator-improved-synchronized-error:
FormError when not synchronized tells you the form name for easier debugging
2011-06-08 08:58:04 +02:00
Fabien Potencier
882a8e3f09
Merge remote branch 'stof/security_login'
...
* stof/security_login:
Added the support of the locale in the login path and the check path
2011-06-08 08:55:10 +02:00
Benjamin Eberlei
2a5449dcb0
[DoctrineBundle] added tests for registry
2011-06-08 08:48:49 +02:00
Fabien Potencier
879242cdf5
moved some Doctrine classes from the bundle to the bridge
2011-06-08 08:41:44 +02:00
Fabien Potencier
fbf36957e6
refactored Doctrine Bridge
...
* added a RegistryInterface
* changed all classes to depend on the Registry instead of a specific EntityManager
This is more consistent as the validator already took the registry and this allows
to use any entity manager in Forms.
2011-06-08 08:35:48 +02:00
Fabien Potencier
84b25b1626
Merge remote branch 'beberlei/AsseticDirectoryResource'
...
* beberlei/AsseticDirectoryResource:
[Assetic] Make AsseticExtension::createDirectoryResourceDefinition public, so that third party bundels can easilycreate definitions to search for assetic formulae in additional directories. LiipThemeBundle needs this to make the app/Resources/themes and Bundle/Resources/themes folder searchable. Without this change the whole method would need to be copy pasted. Since the method has no side-effects at all (only factory, not pushing into the container) this change is justifyable imho.
2011-06-07 23:04:57 +02:00
Benjamin Eberlei
d4e47a305b
[Assetic] Make AsseticExtension::createDirectoryResourceDefinition public, so that third party bundels can easilycreate definitions to search for assetic formulae in additional directories. LiipThemeBundle needs this to make the app/Resources/themes and Bundle/Resources/themes folder searchable. Without this change the whole method would need to be copy pasted. Since the method has no side-effects at all (only factory, not pushing into the container) this change is justifyable imho.
2011-06-07 22:38:09 +02:00
Fabien Potencier
0d54f5c21e
Merge remote branch 'dlsniper/fix_open_basedir'
...
* dlsniper/fix_open_basedir:
Fix problem with searching files while the open_basedir is in use
2011-06-07 22:15:07 +02:00
Fabien Potencier
2573c8968f
[Form] fixed choices when keys are integers
...
This fixes choices when all the keys are strings (but integers really).
That's because in PHP, if you have the following array:
array('1' => 'foo', '2' => 'bar');
PHP "converts" it automatically to the following array:
array(1 => 'foo', 2 => 'bar');
2011-06-07 21:53:59 +02:00
Fabien Potencier
462a8c79ad
[Form] tweaked previous commit
2011-06-07 21:45:36 +02:00
Fabien Potencier
91aedf5995
Merge remote branch 'fivestar/single-choice-expanded'
...
* fivestar/single-choice-expanded:
[Form] Fixed FixRadioInputListener to not ignore 0.
[Form] Fixed single expanded choice type to set checked attribute when passed boolean value
2011-06-07 20:53:21 +02:00
Fabien Potencier
c6cfd3aeb1
Merge remote branch 'Herzult/fixArrayOption'
...
* Herzult/fixArrayOption:
Simplify conditional block
[Command] Fix array option parsing
2011-06-07 19:55:53 +02:00
Fabien Potencier
adc7904c33
[FrameworkBundle] fixed phpdoc
2011-06-07 19:49:03 +02:00
Fabien Potencier
aaf1300a20
merged hhamon/controller_getrequest_method
2011-06-07 19:48:40 +02:00
Fabien Potencier
97a745e973
Merge remote branch 'vicb/form-rendering-fix'
...
* vicb/form-rendering-fix:
[Form] Fix accessibility for file inputs
[FrameworkBundle] Fix the FormHelper phpDoc
[FrameworkBundle][Form] Add some phpDoc for the FormHelper class
[FrameworkBundle][Form] Fix label rendering
[FrameworkBundle][Form] Fix rendering search inputs in PHP
[Form] FormType labels should never have a for attribute
[Form] Never render a view again
2011-06-07 19:46:20 +02:00
Fabien Potencier
74fbdc2fe2
Merge remote branch 'hhamon/typo_fix'
...
* hhamon/typo_fix:
[FrameworkBundle] some typo fixes in phpdoc.
2011-06-07 19:39:03 +02:00
Fabien Potencier
ce8718e141
[HttpKernel] updated the VERSION to something more useful ( closes #1096 )
2011-06-07 19:20:37 +02:00
Fabien Potencier
2286452cc8
[DoctrineBundle] added a few aliases
2011-06-07 18:26:28 +02:00
Fabien Potencier
d84728e278
[Console] removed the ? alias for help and fix a few bugs from the previous commit
2011-06-07 18:26:00 +02:00
Fabien Potencier
7d3e20d87d
[Console] removed the special treatment of aliases in Application
2011-06-07 18:14:15 +02:00
Fabien Potencier
facff73049
made the console tool more powerful
...
* The command names have now full support for nested namespaces. It means
that abbreviations work for each sub-namespace:
./app/console doctrine:mapping:info
# worked before
./app/console doctrine:map:in
# works now
./app/console doc:map:in
* Aliases are now first class citizen. They can have their own namespace,
like the main name. So, now, there is no difference between an alias and a
name.
* As names and aliases can be namespaced, the Command::getFullName() and
Command::getNamespace() method have been removed.
2011-06-07 17:51:43 +02:00
Fabien Potencier
89f544afb6
moved Twig form templates to the Twig bridge
2011-06-07 16:38:23 +02:00
Fabien Potencier
1363068686
[FrameworkBundle] fixed phpdoc
2011-06-07 16:13:08 +02:00
Hugo Hamon
1c96ee672a
[FrameworkBundle] some typo fixes in phpdoc.
2011-06-07 15:35:03 +02:00
Hugo Hamon
37b2df25bf
[FrameworkBundle] Introduced a new Controller::getRequest() method to get the Request service from a controller.
2011-06-07 15:33:20 +02:00
Antoine Hérault
d9f00ca7be
Simplify conditional block
2011-06-07 15:19:16 +02:00
Antoine Hérault
fb051b2f98
[Command] Fix array option parsing
2011-06-07 14:58:11 +02:00
Fabien Potencier
6737bd36bd
[TwigBundle] made table_layout.html.twig useable as a trait
2011-06-07 13:52:58 +02:00
Fabien Potencier
3422c140b8
[Templating] fixed cache loader as the logical name can contain characters not valid on some OSes
2011-06-07 13:35:55 +02:00
Fabien Potencier
41242dcc00
[DoctrineBundle] made XML/YAML mapping drivers more BC with their Doctrine counterparts
...
The ultimate goal is to move back these mapping dirvers to the Doctrine project.
2011-06-07 12:14:46 +02:00
Fabien Potencier
116e004f7d
[DoctrineBundle] removed doctrine:generate:proxies as this command is never needed in a Symfony2 context
2011-06-07 12:01:07 +02:00
Fabien Potencier
b51d839ab8
removed duplicated test
2011-06-07 11:57:48 +02:00
Fabien Potencier
35c85a1547
added missing change from previous commit (sorry :()
2011-06-07 11:57:30 +02:00
Fabien Potencier
a17478ff74
tweaked previous commit
2011-06-07 11:48:08 +02:00
Fabien Potencier
96fc666454
simplified cache warmers
...
Here are the new simplified rules:
* Required cache warmers are *always* executed when the Kernel boots for the first time;
* Optional cache warmers are *only* executed from the CLI via cache:warmup
These new rules means that all the configuration settings for the cache
warmers have been removed. So, if you want the best performance, remember to
warmup the cache when going to production.
This also fixed quite a few bugs.
2011-06-07 11:42:27 +02:00
Fabien Potencier
b76eec73b9
[HttpKernel] changed cache warmup to be executed even in the CLI
2011-06-07 10:41:30 +02:00
Fabien Potencier
5be0bafe7f
removed TemplateReferenceInterface::getSignature() (replaced by the existing getLogicalName() which already acts as a unique identifier)
2011-06-07 10:12:38 +02:00
Fabien Potencier
5af7c7fffd
moved TemplateFinder to CacheWarmer as it is only useful in this context
2011-06-07 09:39:41 +02:00
Fabien Potencier
125df3ab3b
[DoctrineBundle] removed unneeded use statement
2011-06-07 09:06:58 +02:00
Fabien Potencier
22428b8b14
[DoctrineBundle] refactored Doctrine proxy cache warmer
...
* removed the dependency on the Container
* the proxy cache is now get from each entity manager configuration
2011-06-07 09:03:40 +02:00
Fabien Potencier
1c3fa20685
[DoctrineBundle] added Registry::getEntityManagers()
2011-06-07 08:53:04 +02:00
Fabien Potencier
85a381d048
[DoctrineBundle] added Registry::getConnections()
2011-06-07 08:53:03 +02:00
Fabien Potencier
2a5d7687b7
fixed Router cache warmer
2011-06-07 08:53:01 +02:00
Fabien Potencier
8618a27bf7
[DoctrineBundle] tweaked phpdoc
2011-06-07 08:44:59 +02:00
Christophe Coevoet
f3031251c5
Added the support of the locale in the login path and the check path
2011-06-06 21:44:53 +02:00
Victor Berchet
8d2974ce90
[Form] Fix accessibility for file inputs
2011-06-06 21:00:07 +02:00
Victor Berchet
c0355038cf
[FrameworkBundle] Fix the FormHelper phpDoc
2011-06-06 21:00:07 +02:00
Victor Berchet
1196eb8e51
[FrameworkBundle][Form] Add some phpDoc for the FormHelper class
2011-06-06 20:12:37 +02:00
Victor Berchet
5044a7b56d
[FrameworkBundle][Form] Fix label rendering
...
The label should not include the view 'id' attribute as it is used by the view widget.
2011-06-06 20:12:03 +02:00
Victor Berchet
61721e3fd4
[FrameworkBundle][Form] Fix rendering search inputs in PHP
2011-06-06 18:17:22 +02:00
Fabien Potencier
cb3390e9ae
Merge remote branch 'gordonslondon/http-foundation/response'
...
* gordonslondon/http-foundation/response:
[HttpFoundation] merge Response::isRedirected() with Response::isRedirect() - Response::isRedirected() has been removed
2011-06-06 18:06:51 +02:00
Victor Berchet
60c463d184
[Form] FormType labels should never have a for attribute
2011-06-06 18:04:07 +02:00
Victor Berchet
b12b11c131
[Form] Never render a view again
...
If some of the nested views are rendered individually they should not be rendered again when calling form_rest.
A typical would be when some nested file views are rendered, form_rest should not render them again.
It is still possible to render a label once the widget has been rendered. This is for checkboxes and radios
where the widget is typically rendered before the label.
2011-06-06 18:01:03 +02:00
Derek ROTH
9013e3639b
Changed load_resource_bundle() to use ResourceBundle::create() method instead of constructor
2011-06-06 08:45:12 -07:00
Lukas Kahwe Smith
34ac2fe200
fixed a typo
2011-06-06 17:29:50 +02:00
Fabien Potencier
c3bf2037df
Merge remote branch 'vicb/form-collection-rendering'
...
* vicb/form-collection-rendering:
[Form] Fix collection rendering
2011-06-06 14:56:16 +02:00
Fabien Potencier
78b91a017e
Merge remote branch 'DerekRoth/patch-1'
...
* DerekRoth/patch-1:
A constructor returning null is counter-intuitive. BTW, isn't this a intl bug ?
2011-06-06 14:52:24 +02:00
Fabien Potencier
48733b927d
[Swiftmailer] added the swiftmailer.plugin tag to automatically register Swiftmailer plugins
2011-06-06 14:48:42 +02:00
Fabien Potencier
a5daf4706a
[SwiftmailerBundle] updated XSD
2011-06-06 14:43:36 +02:00
Victor Berchet
ef8cb967f5
Merge branch 'master' into form-collection-rendering
2011-06-06 14:39:18 +02:00
Fabien Potencier
b83aa9d006
[SwiftmailerBundle] fixed previous merge
2011-06-06 14:25:17 +02:00
Victor Berchet
bca17fe6a3
[Form] Fix collection rendering
2011-06-06 14:21:49 +02:00
Fabien Potencier
ce4a49d648
merged arjenjb/swift-antiflood-plugin
2011-06-06 14:21:20 +02:00
Victor Berchet
6711a184fd
[TwigBundle][Form] Simplify templates
...
The Repeated and Collection types extend the Form type so there is no need to explicitely render the parent section.
2011-06-06 12:53:19 +02:00
Derek ROTH
7837d328bf
A constructor returning null is counter-intuitive. BTW, isn't this a intl bug ?
2011-06-06 03:32:25 -07:00
Victor Berchet
181fb56925
[Form][Twig] Reorganized the form template
2011-06-06 12:32:08 +02:00
Victor Berchet
eed54c137e
[Form] Fix the FormView::isRendered() method
2011-06-06 12:31:30 +02:00
Fabien Potencier
a1d866e709
[DoctrineBundle] fixed typo
2011-06-06 09:11:02 +02:00
Fabien Potencier
a98046dd44
[Config] added a guard against circular references
2011-06-05 10:52:57 +02:00
Fabien Potencier
87fefcae62
[Form] removed obsolete comment
2011-06-05 08:49:06 +02:00
Fabien Potencier
dd5f088abb
Merge remote branch 'jwage/master'
...
* jwage/master:
Revert back to using gmmktime and use day 15 instead of 1 to avoid edge case
Use mktime instead of gmmaketime. On the 1st of every month the following options are generated:
2011-06-05 08:47:49 +02:00
Fabien Potencier
433e403981
Merge branch 'doctrine-mapping-convert'
...
* doctrine-mapping-convert:
[DoctrineBundle] fixed extensions of generated files
2011-06-05 08:31:06 +02:00
Fabien Potencier
9d18b38fc0
[DoctrineBundle] fixed non-working safe-guards ( closes #1129 )
2011-06-05 08:30:00 +02:00
Fabien Potencier
8c0e5029a0
[DoctrineBundle] fixed extensions of generated files
2011-06-05 08:12:53 +02:00
Fabien Potencier
8457bfa365
[FrameworkBundle] fixed _locale management in core.request
2011-06-04 22:59:06 +02:00
Fabien Potencier
c72537da6b
[Routing] fixed route matching when the prefix contains variables
2011-06-04 19:45:54 +02:00
Fabien Potencier
0298f323e3
fixed typo
2011-06-04 19:23:48 +02:00
Fabien Potencier
c561f4f0c0
[Routing] changed HTTP method to always be uppercased (to be consistent with HttpFoundation/Request)
2011-06-04 19:06:39 +02:00
Fabien Potencier
736c27e0c9
Merge remote branch 'arjenjb/swift-impersonate-plugin'
...
* arjenjb/swift-impersonate-plugin:
Removed plugin from SF
[SwiftmailerBundle] Added ImpersonateSenderPlugin
2011-06-04 18:34:18 +02:00
Fabien Potencier
cb1f2c7e69
Merge remote branch 'kriswallsmith/templating/packages-rework'
...
* kriswallsmith/templating/packages-rework:
[FrameworkBundle] updated for templating changes, added http/ssl logic
[Templating] reworked asset helper and packages
2011-06-04 18:25:52 +02:00
Fabien Potencier
06804d3f1d
[Console] added mb_detect_encoding when needed
2011-06-04 18:20:20 +02:00
Fabien Potencier
18c3049fad
Merge remote branch 'brikou/console_formatter_helper'
...
* brikou/console_formatter_helper:
added mb_detect_encoding when formatting block (usefull when mb_internal_encoding is not properly set)
2011-06-04 18:19:11 +02:00
Pascal Borreli
404c452c0b
[Various] Phpdoc & typos
2011-06-04 15:30:56 +00:00
Fabien Potencier
604b043d6e
Merge remote branch 'weaverryan/doctrine_controller_methods'
...
* weaverryan/doctrine_controller_methods:
[FrameworkBundle] Adding a check for the existence of the Doctrine service
[DoctrineBundle] Fixing error per @stloyd
[FrameworkBundle][DoctrineBundle] Adding a few shortcut methods
2011-06-04 13:55:25 +02:00
Fabien Potencier
8e6166fd32
Merge remote branch 'stloyd/is_null'
...
* stloyd/is_null:
Remove all `is_null` alias calls.
2011-06-04 13:54:33 +02:00
Fabien Potencier
0bf10c4ce1
Merge remote branch 'schmittjoh/events'
...
* schmittjoh/events:
[FrameworkBundle] add the old method naming convention
2011-06-04 13:52:59 +02:00
Fabien Potencier
33b47b22db
Merge remote branch 'schmittjoh/security'
...
* schmittjoh/security:
[SecurityBundle] exposed setting in the configuration
[Security/Http] removed irrelevant code
2011-06-04 13:52:18 +02:00
Fabien Potencier
f9ffdf5b33
[Routing] added proper support for the HEAD method
2011-06-04 12:47:38 +02:00
Fabien Potencier
9eae7e54ca
[Routing] removed unneeded code in the dumper Apache rules
2011-06-04 12:46:19 +02:00
Fabien Potencier
9f3e996c43
[FrameworkBundle] fixed tests
2011-06-04 11:57:49 +02:00
Fabien Potencier
7780c4deda
[HttpKernel] removed Response content when Request method is HEAD as per RFC2616
2011-06-04 11:56:12 +02:00
Fabien Potencier
c62b2309cf
[FrameworkBundle] fixed WDT for redirects emitted by the Security component
2011-06-04 10:25:44 +02:00
Fabien Potencier
611a4a212c
[FrameworkBundle] allowed a service to register a kernel listener more than once for a given event
2011-06-04 10:23:42 +02:00
Fabien Potencier
df81296443
[Routing] fixed generation when a default value is null
2011-06-03 22:57:26 +02:00
Fabien Potencier
79c6dc7937
[Console] fixed nested styles
2011-06-03 22:48:04 +02:00
Matthieu Vachon
954bdb5813
[Form] Updated DateTimeType to accept a custom date pattern for the DateType child
...
* Added a test also about this change
2011-06-03 11:05:11 -04:00
Matthieu Vachon
e7e744f00a
[Form] Synced changes in this branch with current Symfony master branch
2011-06-03 10:51:08 -04:00
Matthieu Vachon
436cb95223
[Form] Changed to a CreateException when the 'format' option is invalid
...
* Updated DateTypeTest also
2011-06-03 10:47:00 -04:00
Matthieu Vachon
a8152326fb
[Form] The IntlDateFormatter pattern can now be passed via the format option
...
* Also changed the default value of the calendar paramter to \IntlDateFormatter:GREGORIAN
in DateTimeToLocalizedStringTransformer which is the same as the default value in
StubIntlDateFormatter
2011-06-03 10:46:58 -04:00
Amal Raghav
52a1e1d281
moved date_pattern to IntlDateFormatter
...
added code to use custom date_pattern
2011-06-03 10:46:55 -04:00
Amal Raghav
dd104bc8c0
added code to use custom date_pattern
2011-06-03 10:46:54 -04:00
Johannes M. Schmitt
d03c6c72eb
[SecurityBundle] exposed setting in the configuration
2011-06-03 14:06:55 +02:00
Johannes M. Schmitt
672cf78816
[Security/Http] removed irrelevant code
2011-06-03 14:02:57 +02:00
stloyd
4e03db63d7
Remove all is_null
alias calls.
2011-06-03 11:16:32 +02:00
Joseph Bielawski
a414e56881
Fix for failing tests #1199 when Twig vendor doesn't exists.
2011-06-03 01:42:19 -07:00
Christophe Coevoet
f84ee37ae0
[HttpKernel] Fixed the test about the availability of the logger
2011-06-03 00:00:41 +02:00
Jonathan H. Wage
611dbf1bfe
Revert back to using gmmktime and use day 15 instead of 1 to avoid edge case
2011-06-02 13:47:58 -07:00
Ryan Weaver
172c956b73
[FrameworkBundle] Adding a check for the existence of the Doctrine service
2011-06-02 13:26:51 -05:00
Ryan Weaver
1ac4675e32
[DoctrineBundle] Fixing error per @stloyd
2011-06-02 13:26:17 -05:00
Ryan Weaver
28dcb3c581
[FrameworkBundle][DoctrineBundle] Adding a few shortcut methods
...
This adds to convience methods, for two separate reasons:
* Controller::getDoctrine() - this will allow method completion on the Registry class to work in IDEs, is slightly shorter, and should feel very "concrete" to beginners
* Registry::getRepository() - the repository is a very convenient thing to need - this allows it to be fetched much more succintly
Overall Before:
$product = $this->get('doctrine')
->getEntityManager()
->getRepository('AcmeDemoBundle:Product')
->find($id);
Overall After (with IDE method auto-completion for `getRepository`):
$product = $this->getDoctrine()
->getRepository('AcmeDemoBundle:Product')
->find($id);
2011-06-02 09:31:22 -05:00
Brikou CARRE
597a646347
added mb_detect_encoding when formatting block (usefull when mb_internal_encoding is not properly set)
2011-06-02 13:20:51 +02:00
Katsuhiro OGAWA
790284f2a8
[Form] Fixed FixRadioInputListener to not ignore 0.
2011-06-02 19:19:43 +09:00
Katsuhiro OGAWA
5893874ed5
[Form] Fixed single expanded choice type to set checked attribute when passed boolean value
2011-06-02 19:19:42 +09:00
Jonathan H. Wage
cd99d2a07d
Use mktime instead of gmmaketime. On the 1st of every month the following options are generated:
...
<select id="filter_start_date_month" name="filter[start][date][month]">
<option value="1">Dec</option>
<option value="2">Jan</option>
<option value="3">Feb</option>
<option value="4">Mar</option>
<option value="5">Apr</option>
<option value="6" selected="selected">May</option>
<option value="7">Jun</option>
<option value="8">Jul</option>
<option value="9">Aug</option>
<option value="10">Sep</option>
<option value="11">Oct</option>
<option value="12">Nov</option>
</select>
I do not totally understand the problem but using mktime instead of gmmktime fixes the issue.
2011-06-01 12:09:28 -05:00
Fabien Potencier
4b86b15105
Merge remote branch 'schmittjoh/security'
...
* schmittjoh/security:
[SecurityBundle] fixed a regression
[SecurityBundle] re-use local variable
[SecurityBundle] added validation for check paths
[SecurityBundle] added user_providers option for remember_me
[Security/Core] added missing method to interface
2011-06-01 16:03:02 +02:00
Johannes M. Schmitt
9ad318546d
[SecurityBundle] fixed a regression
2011-06-01 13:53:21 +02:00
Johannes M. Schmitt
66f3abfe0c
[SecurityBundle] re-use local variable
2011-06-01 13:20:52 +02:00
Johannes M. Schmitt
6f8871d2d7
[SecurityBundle] added validation for check paths
2011-06-01 13:05:34 +02:00
Johannes M. Schmitt
d2fa6c3e4e
[SecurityBundle] added user_providers option for remember_me
2011-06-01 11:48:20 +02:00
Johannes M. Schmitt
90b63ca346
[Security/Core] added missing method to interface
2011-06-01 11:48:19 +02:00
NicoB
145216477b
AsseticBundle : Add the missing cssmin filter service's schema
2011-06-01 16:30:31 +07:00
Fabien Potencier
2093a45aef
merged stloyd/form_label
2011-06-01 11:11:25 +02:00
Fabien Potencier
a8089225e2
Merge remote branch 'fivestar/controller-signature'
...
* fivestar/controller-signature:
[FrameworkBundle] Fixed phpdoc.
[FrameworkBundle] Fixed signature of the Controller::createForm() to accept string type
2011-06-01 10:59:08 +02:00
Fabien Potencier
3d532f806a
[FrameworkBundle] renamed getProfiler to getProfile (as the method now returns a Profile instance)
2011-06-01 10:55:46 +02:00
Katsuhiro OGAWA
16a40f6112
[FrameworkBundle] Fixed phpdoc.
2011-06-01 17:45:51 +09:00
Fabien Potencier
481d684973
Merge remote branch 'vslinko/master'
...
* vslinko/master:
[AsseticBundle] Fixed typo in use statement
2011-06-01 10:40:16 +02:00
Fabien Potencier
885da2ef87
Merge remote branch 'kriswallsmith/assetic/parameter-replacement'
...
* kriswallsmith/assetic/parameter-replacement:
[AsseticBundle] added support for parameter replacement in asset inputs
2011-06-01 10:35:43 +02:00
Fabien Potencier
c8034c04a8
Merge remote branch 'vicb/form-rendering'
...
* vicb/form-rendering:
[Form] The variable stack should not persist between section rendering (fixes #1157 )
[Twig][Form] Tweak form extension phpDoc and code
[Form] Tweak phpDoc
[FormView] fix phpDoc
[Form] Some tweaks
2011-06-01 10:32:40 +02:00
stloyd
7b6d921cde
[Form] Added tests for previous commit
2011-06-01 10:08:18 +02:00
Fabien Potencier
cf78841111
[WebProfilerController] cleaned up the controller
2011-06-01 07:44:52 +02:00
Kris Wallsmith
3e68eb61a5
[AsseticBundle] added support for parameter replacement in asset inputs
...
{% javascripts '%kernel.root_dir%/Resources/css/main.css' %}
...
{% endjavascripts %}
2011-05-31 21:35:31 -07:00
stloyd
cb22ccc516
[Form] Added missing feature for adding attributes to an field label
2011-05-31 17:01:28 +02:00
Kris Wallsmith
d9f5c99fab
[FrameworkBundle] updated for templating changes, added http/ssl logic
2011-05-31 06:46:30 -07:00
Kris Wallsmith
2642b0012f
[Templating] reworked asset helper and packages
...
Added support for a configurable format string used to apply version to a path (defaults to '%s?%s').
Moved base url/base path logic to packages.
2011-05-31 06:46:30 -07:00
Fabien Potencier
af84cfec33
[DoctrineBundle] fixed doctrine:generate:entity
2011-05-31 15:15:18 +02:00
arjen
df02c05271
Removed plugin from SF
2011-05-31 14:31:23 +02:00
arjen
ed4f659693
[SwiftmailerBundle] Added ImpersonateSenderPlugin
2011-05-31 13:34:06 +02:00
Fabien Potencier
f70c7e7c1c
[HttpKernel] added Filesystem::isAbsolutePath()
2011-05-31 11:04:23 +02:00
Fabien Potencier
65200aa86a
added missing license headers
2011-05-31 10:57:06 +02:00
Fabien Potencier
839c332438
moved all listener classes under a common EventListener sub-namespace
2011-05-31 10:43:20 +02:00
Fabien Potencier
7d999acd0b
fixed previous commit
2011-05-31 09:31:09 +02:00
Fabien Potencier
28527c7c91
renamed some UniversalClassLoader for better consistency
2011-05-31 09:28:32 +02:00
Johannes Schmitt
bee6a48f97
[FrameworkBundle] add the old method naming convention
2011-05-31 08:58:24 +02:00
Fabien Potencier
02605f3481
merged origin/master
2011-05-31 08:34:05 +02:00
Fabien Potencier
2e56703a32
[SecurityBundle] fixed error_log() being called during functional tests
2011-05-31 08:02:18 +02:00
Fabien Potencier
3ca5780486
[HttpKernel] added a NullLogger
2011-05-31 08:02:17 +02:00
Fabien Potencier
d1ca577e3f
removed Logger::getDebugLogger() as the method is not part of any interface
2011-05-31 08:02:14 +02:00
Fabien Potencier
79e709cdc9
removed the ON_ prefix for Form event names
2011-05-31 07:19:18 +02:00
Katsuhiro OGAWA
57fa3af441
[FrameworkBundle] Fixed signature of the Controller::createForm() to accept string type
2011-05-31 11:02:49 +09:00
Fabien Potencier
514bf9af5d
[Security] fixed wrong function call
2011-05-30 22:52:35 +02:00
Fabien Potencier
988355993a
refactored Profiler class
2011-05-30 22:25:25 +02:00
Victor Berchet
b61929bf4a
[Form] The variable stack should not persist between section rendering ( fixes #1157 )
2011-05-30 19:25:02 +02:00
Victor Berchet
d375379a6a
[Twig][Form] Tweak form extension phpDoc and code
2011-05-30 18:24:12 +02:00
Vyacheslav Slinko
683d452a3a
[AsseticBundle] Fixed typo in use statement
2011-05-30 18:50:07 +04:00
Fabien Potencier
57fb1ba399
[FrameworkBundle] fixed typo
2011-05-30 16:27:38 +02:00
Fabien Potencier
5cffd9139b
[FrameworkBundle] fixed typo
2011-05-30 16:25:43 +02:00
Fabien Potencier
a2163f39ff
[EventDispatcher] re-added the cache layer
2011-05-30 16:00:29 +02:00
Fabien Potencier
a3403e492e
[EventDispatcher] removed unneeded code
2011-05-30 15:56:06 +02:00
Victor Berchet
cbfc146ac8
[Form] Tweak phpDoc
2011-05-30 15:21:15 +02:00
Victor Berchet
2b99d45dd3
[FormView] fix phpDoc
2011-05-30 15:21:15 +02:00
Fabien Potencier
c8f9904ac8
merged origin/master
2011-05-30 15:00:41 +02:00
Fabien Potencier
6731065626
tweaked priorities
2011-05-30 14:59:32 +02:00
Fabien Potencier
ea848be42f
[SecurityBundle] added some cleanup
2011-05-30 14:59:18 +02:00
Fabien Potencier
4f7484b946
[HttpFoundation] moved dir creation just before writing to disk
2011-05-30 14:59:02 +02:00
Victor Berchet
99bf22c464
[Form] Some tweaks
2011-05-30 14:57:33 +02:00
Fabien Potencier
9181e5dd0c
merged origin/master
2011-05-30 14:28:54 +02:00
Fabien Potencier
9698669baa
renamed RequestAttributeInitializingListener to RouterListener and
...
SessionInitializingListener to SessionListener
2011-05-30 14:22:13 +02:00
Johannes M. Schmitt
971ff8175f
[Security] fixes a possible bug when username is an integer
2011-05-30 14:09:16 +02:00
Fabien Potencier
71411ba368
fixed typos
2011-05-30 13:53:50 +02:00
Fabien Potencier
d7220f0c1a
[Security] fixed event names
2011-05-30 13:53:47 +02:00
Fabien Potencier
4753bb2e91
-
2011-05-30 13:53:46 +02:00
Johannes M. Schmitt
bac3ee86f9
[Security] fixes a regression in the AclVoter
2011-05-30 10:04:46 +02:00
Johannes M. Schmitt
8837ce0e57
Merge branch 'master' of http://github.com/symfony/symfony into security
2011-05-30 10:00:07 +02:00
Fabien Potencier
9b7e14dd10
[Form] converted code to the new event dispatcher
2011-05-30 09:37:42 +02:00
Fabien Potencier
0ce22f6bbe
[Security] removed obsolete use statements
2011-05-30 09:36:59 +02:00
Fabien Potencier
90ca8e0404
fixed more unit tests
2011-05-30 09:19:01 +02:00
Fabien Potencier
c171142c01
renamed constants to upper cased
2011-05-30 09:04:37 +02:00
Fabien Potencier
f6b481a9ee
[EventDispatcher] simplified code and fixed unit tests
2011-05-30 08:59:28 +02:00
Fabien Potencier
09a6e6759a
[EventDispatcher] fixed notices
2011-05-30 08:59:22 +02:00
Fabien Potencier
5059559035
Merge remote branch 'Seldaek/events' into events1
...
* Seldaek/events:
[EventDispatcher] Removed temporary code
[FrameworkBundle] Improved code readability
[FrameworkBundle] Clarified code and fixed regression
Update Core and Security events to latest model
[EventDispatcher] Allow registration of arbitrary callbacks
[EventDispatcher] Remove useless code
[EventDispatcher] Minor memory optimization to getListeners()
[FrameworkBundle] Small optimization, remove some function calls
2011-05-30 08:58:49 +02:00
Fabien Potencier
ce6c049d3a
Merge remote branch 'weaverryan/controller_form_methods'
...
* weaverryan/controller_form_methods:
[FrameworkBundle] Adding two form-related methods to the base controller
2011-05-30 07:30:42 +02:00
Ryan Weaver
9f4e88ec17
[FrameworkBundle] Adding two form-related methods to the base controller
...
With these two methods, the concept of a "form factory" doesn't need to be understood by a beginner to create forms.
2011-05-29 23:00:31 -05:00
Pascal Borreli
824e48efa7
[Various] Fixed phpdoc
2011-05-29 23:33:36 +00:00
Pascal Borreli
50d5e3e007
[Various] Fixed typos
2011-05-29 22:24:32 +00:00
Fabien Potencier
6301728383
Merge remote branch 'pborreli/fixed-typos'
...
* pborreli/fixed-typos:
[Various] Fixed typo
[FrameworkBundle] Fixed css
2011-05-29 20:54:38 +02:00
Fabien Potencier
24c86d08cf
Merge remote branch 'stof/translator'
...
* stof/translator:
Use an alias of translator.real instead of copying the definition
2011-05-29 20:53:30 +02:00
Christophe Coevoet
15c5d61af8
Use an alias of translator.real instead of copying the definition
...
Copying the definition leads to 2 different services which the same
definition but different instances.
2011-05-29 18:56:45 +02:00
Ryan Weaver
4f0214eff4
[Routing] Fixing a bug where the current directory was set too late in the PhpFileLoader
2011-05-29 11:26:36 -05:00
Pascal Borreli
46cdf02750
[Various] Fixed typo
2011-05-29 14:19:02 +00:00
Pascal Borreli
6b91af976d
[FrameworkBundle] Fixed css
2011-05-29 14:18:15 +00:00
GordonsLondon
ef9dc7c623
[HttpFoundation] merge Response::isRedirected() with Response::isRedirect() - Response::isRedirected() has been removed
2011-05-29 15:34:02 +02:00
arjen
59b4b67548
Fixed Configuration
2011-05-29 10:37:24 +02:00
Johannes M. Schmitt
32d8d4547e
fixed compiled class map
2011-05-29 09:35:58 +02:00
Johannes M. Schmitt
88becfe3f8
[HttpFoundation] allow locale in RequestMatcher path
2011-05-28 22:37:43 +02:00
Fabien Potencier
54329387fd
Merge remote branch 'ooflorent/patch-1'
...
* ooflorent/patch-1:
Made the profiler toolbar loading an XML HTTP request.
2011-05-28 18:10:27 +02:00
Johannes Schmitt
1f91e2e618
Revert "revert exception message"
...
This reverts commit b637a3190d
.
2011-05-28 18:06:47 +02:00
Johannes Schmitt
786823151e
changed injection type
2011-05-28 18:06:25 +02:00
Fabien Potencier
40b84320d6
[Form] tweaked comment
2011-05-28 18:06:11 +02:00
Fabien Potencier
3b0089967f
Merge remote branch 'stloyd/patch-11'
...
* stloyd/patch-11:
[Form] Force hidden fields to not have "required" attribute (#1091 )
2011-05-28 18:05:27 +02:00
Fabien Potencier
4054cbae29
Merge remote branch 'craue/patch-2'
...
* craue/patch-2:
The toolbar wraps to a 2nd line for long route names which makes it hiding page content, thus better show more white space instead of overlaying content with the toolbar.
2011-05-28 18:02:59 +02:00
Fabien Potencier
1548a049e1
Merge remote branch 'mvrhov/single_text_option_rename'
...
* mvrhov/single_text_option_rename:
Added a note about BC break for DateType into UPDATE.md file
DateType single-text should be single_text
2011-05-28 18:02:36 +02:00
Johannes Schmitt
e3ddb81b38
added some tests for security/routing integration
2011-05-28 17:58:44 +02:00
Johannes Schmitt
439699daeb
Merge branch 'functionalTests' into security
2011-05-28 17:17:00 +02:00
Johannes Schmitt
5cda240c6f
refactored functional tests a bit
2011-05-28 17:16:55 +02:00
Johannes Schmitt
edbf4ea691
Merge branch 'security' of github.com:schmittjoh/symfony into security
2011-05-28 17:09:32 +02:00
Johannes Schmitt
f37386e336
Merge branch 'master' of git://github.com/symfony/symfony into security
2011-05-28 17:07:16 +02:00
Arnout Boks
a0397f99f5
[DependencyInjection] Fixed bug where anonymous services from two different xml-files (with the same basename) could collide
2011-05-28 10:29:32 +02:00
kaiwa
cdf4b6aa77
Checked log levels
2011-05-27 20:29:51 +02:00
Miha Vrhovnik
b8144c62ad
DateType single-text should be single_text
2011-05-27 16:23:59 +02:00
Christian Raue
f29a2b9b72
The toolbar wraps to a 2nd line for long route names which makes it hiding page content, thus better show more white space instead of overlaying content with the toolbar.
2011-05-27 07:17:39 -07:00
arjen
9012eacfd7
Fixed indenting
2011-05-27 16:04:32 +02:00
Fabien Potencier
af2f9207be
[Console] fixed typo
2011-05-27 15:34:13 +02:00
arjen
499282f278
[SwiftmailerBundle] Added support for AntiFloodPlugin
2011-05-27 15:03:46 +02:00
Joseph Bielawski
4b476ad267
[Form] Force hidden fields to not have "required" attribute ( #1091 )
2011-05-27 04:48:14 -07:00
Florent Cailhol
f052d2d439
Made the profiler toolbar loading an XML HTTP request.
2011-05-27 02:14:03 -07:00
Fabien Potencier
923c234160
fixed form_rest() for embedded forms (refs #1051 , #1115 )
2011-05-27 08:12:39 +02:00
Fabien Potencier
4de930b000
[HttpFoundation] added some phpdoc
2011-05-27 07:55:37 +02:00
Fabien Potencier
610583899d
Merge remote branch 'CodeMeme/889-EntityChoiceField-grouped-choices'
...
* CodeMeme/889-EntityChoiceField-grouped-choices:
Whitespace cleanup
Fixed EntityChoiceList to support grouped entities Refs #889
Added test for grouped entity choice list Refs #889
2011-05-27 07:44:35 +02:00
Johannes Schmitt
746151c783
added another test case
2011-05-27 07:37:54 +02:00
Fabien Potencier
32ac29a73d
Merge remote branch 'schmittjoh/functionalTests'
...
* schmittjoh/functionalTests:
[SecurityBundle] bootstrapped functional test suite
2011-05-27 07:35:13 +02:00
Fabien Potencier
614ebe3a39
Merge remote branch 'weaverryan/security_context_missing_logging'
...
* weaverryan/security_context_missing_logging:
[Security] Removing test per @schmittjoh as this area is better functionally-tested
[Security] Adding tests and then fixing bug where ContextListener did no logging
2011-05-27 07:34:51 +02:00
Fabien Potencier
da09411e14
[SwiftmailerBundle] optimized code
2011-05-27 07:33:04 +02:00
Eric Clemmons
fb9d951b1d
Fixed EntityChoiceList to support grouped entities
...
Refs #889
2011-05-26 18:59:21 -07:00
Johannes Schmitt
1ca4dcad91
[SecurityBundle] bootstrapped functional test suite
2011-05-27 01:07:04 +02:00
Fabien Potencier
5ed136b3f1
[SwiftMailer] optimized configuration
...
* Removed the requirement of the init.php file when getting the Swift_Mailer object (must now be done via autoloading -- see Symfony SE)
* Changed the data collector to avoid loading Swiftmailer when no email has been send
2011-05-26 22:29:28 +02:00
Ryan Weaver
bad1cb61d0
[Security] Adding tests and then fixing bug where ContextListener did no logging
2011-05-26 15:08:19 -05:00
Fabien Potencier
9aa8083cb4
[Routing] fixed previous merge
2011-05-26 18:28:42 +02:00
Fabien Potencier
5911fb946d
[Routing] fixed CS
2011-05-26 18:27:18 +02:00
Fabien Potencier
1c0dfad979
Merge remote branch 'Chekote/xmlfileloader_overload_refactor'
...
* Chekote/xmlfileloader_overload_refactor:
Refactored the processing of each individual node into it's own method, enabling easier overloading of behavior for Bundles such as FriendsOfSymfony/RestBundle
2011-05-26 18:25:53 +02:00
Fabien Potencier
6507eeff3c
Merge remote branch 'CodeMeme/1058-fix-radio-input-listener'
...
* CodeMeme/1058-fix-radio-input-listener:
Fix for RadioInputListener's empty value erroneously becoming extra data Refs #1058
Added test for RadioInputListener bug treating no data as extra data
2011-05-26 17:31:09 +02:00
Fabien Potencier
1a109c8bcd
[BrowserKit] fixed CS
2011-05-26 17:07:51 +02:00
Fabien Potencier
eb90427e92
Merge remote branch 'danielholmes/cookie_fixes'
...
* danielholmes/cookie_fixes:
[BrowserKit] fixed explicit cookie params being overriden by url
2011-05-26 17:07:13 +02:00
Fabien Potencier
a0462593eb
[DoctrineBundle] extracted code from Doctrine commands
2011-05-26 16:39:36 +02:00
Fabien Potencier
c19d6c07d2
[HttpFoundation] simplified code
2011-05-26 15:02:40 +02:00
Fabien Potencier
1f369ed1ed
Merge remote branch 'zerosanity/master'
...
* zerosanity/master:
Added missing space.
Fixed broken logic in Request::getHttpHost(). It was ignoring HTTP_HOST completely.
2011-05-26 15:01:53 +02:00
Fabien Potencier
699ecfcf90
Merge remote branch 'stloyd/validators_refactoring'
...
* stloyd/validators_refactoring:
Refactor validators constraints: - remove need for defining "getTargets()" method as 95% of validators use same one - replace abstract "Constraint::getTargets()" with one that use 95% of validators - add additional tests for "Constraint::getTargets()" method - remove unused "use" statement in Constraint\Valid
2011-05-26 14:58:24 +02:00
Fabien Potencier
43817de633
Merge remote branch 'maoueh/date_type_dead_code'
...
* maoueh/date_type_dead_code:
[Form] Removed dead code in the buildForm method of DateType.php * With the introduction of the getAllowedOptionValues mechanics, the check is performed prior to the buildForm call. There is no more needs to check it again in DateType.
2011-05-26 14:57:54 +02:00
Fabien Potencier
67118f7878
Merge remote branch 'sonata-project/change_self_to_static'
...
* sonata-project/change_self_to_static:
change self to static so the parent class can have access to the child constant
2011-05-26 12:55:15 +02:00
Fabien Potencier
be95bff7ca
[Routing] tweaked error messages
2011-05-26 12:54:21 +02:00
Fabien Potencier
5b6f15b661
Merge remote branch 'gimler/master'
...
* gimler/master:
use param names in exception not the index
2011-05-26 12:53:26 +02:00
Fabien Potencier
3bdb7c2b57
[DependencyInjection] fixed regression when a parameter contains an escaped %
...
Notice that this is still not perfect, but I don't see how to fix the remaining
potential problems.
2011-05-26 12:47:50 +02:00
Jordi Boggiano
ba8758b4c2
[EventDispatcher] Removed temporary code
2011-05-26 11:56:59 +02:00
Jordi Boggiano
3f6407ccd1
[FrameworkBundle] Improved code readability
2011-05-26 11:55:11 +02:00
Jordi Boggiano
8a2d5496c9
[FrameworkBundle] Clarified code and fixed regression
2011-05-26 11:55:09 +02:00
Jordi Boggiano
af0bd8a136
Update Core and Security events to latest model
...
The main benefit is that in XML/YML files we have common syntax (i.e. core.controller, form.pre_bind) that properly namespaces event names (before: onCoreController was ok, preBind was not).
On the other hand in PHP land we also have namespaced events, CoreEvents::controller, FormEvents::preBind, before it was Events::onCoreController, Events::onPreBind, we now have more context.
2011-05-26 11:55:07 +02:00
Jordi Boggiano
1246503e55
[EventDispatcher] Allow registration of arbitrary callbacks
...
This in effect removes the direct link between event name and the method name on the handler.
Any callback can be given as a handler and the event name becomes an arbitrary string. Allowing for easier namespacing (see next commit)
2011-05-26 11:54:06 +02:00
Jordi Boggiano
000229dbd0
[EventDispatcher] Remove useless code
2011-05-26 11:54:02 +02:00
Jordi Boggiano
9816b6adc3
[EventDispatcher] Minor memory optimization to getListeners()
2011-05-26 11:54:00 +02:00
Jordi Boggiano
48d6a95803
[FrameworkBundle] Small optimization, remove some function calls
2011-05-26 11:53:58 +02:00
Fabien Potencier
ce79fa9ba2
[DependencyInjection] fixed typo
2011-05-26 08:22:16 +02:00
Daniel Holmes
3c372d3773
[BrowserKit] fixed explicit cookie params being overriden by url
2011-05-26 15:28:51 +10:00
Eric Clemmons
c06a157759
Fix for RadioInputListener's empty value erroneously becoming extra data
...
Refs #1058
2011-05-25 22:24:49 -07:00
Joshua Nye
3832a7a33d
Added missing space.
2011-05-25 17:22:32 -04:00
Joshua Nye
f019541716
Fixed broken logic in Request::getHttpHost(). It was ignoring HTTP_HOST completely.
2011-05-25 16:02:16 -04:00
Eric Clemmons
c13cdd34c5
FormError when not synchronized tells you the form name for easier debugging
2011-05-25 12:50:34 -07:00
Kai
a45d3eeeb6
Reverted last commit
2011-05-25 21:15:34 +02:00
Gordon Franke
60527574d9
use param names in exception not the index
2011-05-25 21:02:01 +02:00
Kai
529381b378
ControllerNotFound: Changed log level from info to error. Also moved
...
throw exception code block up, to prevent the message from beeing
logged multiple times.
2011-05-25 21:01:19 +02:00
Fabien Potencier
0b9f3d8eb6
[DoctrineBundle] made a temporary fix to force Doctrine annotations to be loaded ( closes #1077 )
2011-05-25 20:40:34 +02:00
Fabien Potencier
ce19cc0698
Merge remote branch 'Seldaek/domcrawler'
...
* Seldaek/domcrawler:
[DomCrawler] Uppercase http methods
2011-05-25 18:27:12 +02:00
Jordi Boggiano
08e7629fb4
[DomCrawler] Uppercase http methods
2011-05-25 15:45:23 +02:00
stealth35
956f58733c
SQLite -> SQLite3
2011-05-25 05:51:48 -07:00
Fabien Potencier
66064cc8fc
fixed CS
2011-05-25 11:35:29 +02:00
Fabien Potencier
9f76d3452d
Merge remote branch 'stloyd/regexp_validator'
...
* stloyd/regexp_validator:
Simplify RegexValidator
2011-05-25 11:35:07 +02:00
Fabien Potencier
dcd490e03f
[Twig] added a way to use % in a trans string ( closes #981 )
2011-05-25 11:29:23 +02:00
stloyd
db28beb395
Simplify RegexValidator
2011-05-25 11:08:13 +02:00
stloyd
3ea2a32c53
Refactor validators constraints:
...
- remove need for defining "getTargets()" method as 95% of validators use same one
- replace abstract "Constraint::getTargets()" with one that use 95% of validators
- add additional tests for "Constraint::getTargets()" method
- remove unused "use" statement in Constraint\Valid
2011-05-25 10:51:35 +02:00
Fabien Potencier
be046bcb44
Merge remote branch 'mcbennn/master'
...
* mcbennn/master:
'annotate' option is useless
no-backup option instead of force, cleaned comparison operator
Implements some options that already exist on other doctrine-related commands
2011-05-25 10:06:30 +02:00
Fabien Potencier
462f222319
[DependencyInjection] changed \LogicException to RuntimeException to be more consistent
2011-05-25 09:59:38 +02:00
Fabien Potencier
2438a73c7b
[DependencyInjection] added a check for circular references in parameter definitions
2011-05-25 09:57:38 +02:00
mcben
946f68e029
'annotate' option is useless
2011-05-25 09:54:13 +02:00
mcben
512eb5378a
no-backup option instead of force, cleaned comparison operator
2011-05-25 09:54:13 +02:00
mcben
650479735b
Implements some options that already exist on other doctrine-related commands
2011-05-25 09:54:13 +02:00
Fabien Potencier
456eb53eb8
[DependencyInjection] renamed CircularReferenceException to ServiceCircularReferenceException
2011-05-25 09:48:49 +02:00
Fabien Potencier
6c409cac84
[DependencyInjection] refactored parameter bag parameter replacements (removed duplicated code)
2011-05-25 09:35:51 +02:00
Fabien Potencier
179864414e
[Form] fixed CS
2011-05-25 08:03:21 +02:00
Fabien Potencier
9e632b9135
Merge remote branch 'hlecorche/master'
...
* hlecorche/master:
IntegerToLocalizedStringTransformer must return "null" if input value is null
2011-05-25 08:02:35 +02:00
hlecorche
cc49cd9498
Merge remote-tracking branch 'remotes/symfony/master'
2011-05-24 23:25:58 +02:00
Joseph Bielawski
e29e12473c
[Tests] Skip test if Doctrine Common is not available.
2011-05-24 14:18:17 -07:00
Joseph Bielawski
46e58206a3
[Tests] Skip test if Doctrine Common is not available.
2011-05-24 14:16:10 -07:00
Fabien Potencier
05778c719f
[BrowserKit] fixed CS
2011-05-24 20:37:52 +02:00
Fabien Potencier
e0bf310b55
Merge remote branch 'hnw/cookie-raw-value'
...
* hnw/cookie-raw-value:
added test for Cookie#getRawValue and CookieJar#AllRawValues
fixed doc comment
[BrowserKit] dealing with raw value for cookies
2011-05-24 20:20:57 +02:00
Fabien Potencier
aa356e7288
[BrowserKit] fixed cookie management (see RFC 2109)
2011-05-24 20:08:11 +02:00
Fabien Potencier
4f47fc708e
Merge remote branch 'weaverryan/security_factories_delegating_loader'
...
* weaverryan/security_factories_delegating_loader:
[SecurityBundle] Using a DelegatingLoader so that security factories can be in any config format
2011-05-24 19:44:15 +02:00
Fabien Potencier
a8a94dc631
Merge remote branch 'schmittjoh/doctrine'
...
* schmittjoh/doctrine:
updated to latest changes in Doctrine
2011-05-24 18:52:49 +02:00
Ryan Weaver
afe6005f49
[SecurityBundle] Using a DelegatingLoader so that security factories can be in any config format
2011-05-24 11:35:49 -05:00
Thomas Rabaix
be2c427053
change self to static so the parent class can have access to the child constant
2011-05-24 18:25:28 +02:00
Fabien Potencier
38ea3f4f3a
Merge remote branch 'kriswallsmith/twig/lazy-helpers'
...
* kriswallsmith/twig/lazy-helpers:
[TwigBundle] reverted to lazy-loading of templating helpers (fixes #1066 )
2011-05-24 18:15:14 +02:00
Kris Wallsmith
4018040bbb
[TwigBundle] reverted to lazy-loading of templating helpers ( fixes #1066 )
2011-05-24 09:09:47 -07:00
Fabien Potencier
37ada8e382
Merge remote branch 'richardmiller/assetic_filter_options'
...
* richardmiller/assetic_filter_options:
Added calling methods for options to assetic filter configs
2011-05-24 17:47:45 +02:00
Fabien Potencier
c1cd66c9f9
[DoctrineBundle] fixed CS
2011-05-24 17:39:06 +02:00
Fabien Potencier
3d7d84726b
Merge remote branch 'pkruithof/master'
...
* pkruithof/master:
Global mapping file is not seen as class name anymore
Global mapping file is not seen as class name anymore
2011-05-24 17:37:45 +02:00
Kai
7c29e8881f
Changed log level of "Matched route ..." message from info to debug
2011-05-24 15:34:35 +02:00
Kai
dca09fd53f
Changed log level of "Using Controller ..." message from info to debug
2011-05-24 15:25:54 +02:00
Sven Paulus
4f39b9ae9b
fix invalid schema in monolog bundle
2011-05-24 15:11:45 +02:00
Johannes M. Schmitt
decac13331
added a few finals
2011-05-24 15:08:22 +02:00
Johannes M. Schmitt
0f9767a49e
Merge remote branch 'origin/master' into security
2011-05-24 14:58:41 +02:00
Peter Kruithof
0ca6f7966e
Global mapping file is not seen as class name anymore
2011-05-24 05:14:38 -07:00
Peter Kruithof
e655858498
Global mapping file is not seen as class name anymore
2011-05-24 05:13:27 -07:00
Johannes Schmitt
9c0db88851
updated to latest changes in Doctrine
2011-05-24 13:29:44 +02:00
Richard Miller
1744c86c18
Added calling methods for options to assetic filter configs
2011-05-24 10:49:49 +01:00
Fabien Potencier
5e1710f136
Merge remote branch 'alexandresalome/twig-bundle-extensions-cleanup'
...
* alexandresalome/twig-bundle-extensions-cleanup:
[TwigBundle] Remove authoring
[TwigBundle] Remove use ContainerInterface - not used
[TwigBundle] Move all class names to parameters of DIC
[TwigBundle] Rename TemplatingExtension to AssetsExtension
[TwigBundle] Move the code filters to a dedicated extensions
[TwigBundle] Change the dependency of ActionsExtension to the actions helper
[TwigBundle] Move the {% render ... %} node to a dedicated extension + Remove service container
2011-05-24 10:57:29 +02:00
alexandresalome
b1a26b8829
[TwigBundle] Remove authoring
2011-05-24 10:56:45 +02:00
alexandresalome
98755bc8a5
[TwigBundle] Remove use ContainerInterface - not used
2011-05-24 10:56:45 +02:00
alexandresalome
dfdd26d6c4
[TwigBundle] Move all class names to parameters of DIC
2011-05-24 10:56:45 +02:00
alexandresalome
f13798fa5e
[TwigBundle] Rename TemplatingExtension to AssetsExtension
...
This extension now only contains assets functions
2011-05-24 10:56:45 +02:00
alexandresalome
f83c1376a1
[TwigBundle] Move the code filters to a dedicated extensions
...
A dedicated extension now exists for the code-related filters for Twig.
The dependency to service_container was also removed, to use CodeHelper, instead
2011-05-24 10:56:45 +02:00
alexandresalome
73bd9c72af
[TwigBundle] Change the dependency of ActionsExtension to the actions helper
...
The logical of moving $attributes to a value of $options is already present
in the PHP templating helper.
2011-05-24 10:56:45 +02:00
alexandresalome
3cdf371c2b
[TwigBundle] Move the {% render ... %} node to a dedicated extension + Remove service container
...
The purpose of the TemplatingExtension is ambigous. This first step move the actions logical
to a dedicated extension and reduce the dependency to the HTTP Kernel.
2011-05-24 10:56:45 +02:00
hlecorche
400de9c541
IntegerToLocalizedStringTransformer must return "null" if input value is null
2011-05-24 10:52:28 +02:00
Fabien Potencier
754a0771f3
Merge remote branch 'everzet/builder-private-services-fix'
...
* everzet/builder-private-services-fix:
[DependencyInjection] create inlined private service from it's definition
[DependencyInjection] added failing private service user test-case
2011-05-24 10:32:48 +02:00
Fabien Potencier
0dab2de6da
Merge remote branch 'craue/patch-1'
...
* craue/patch-1:
removed unnecessary semicolon
2011-05-24 09:57:41 +02:00
Fabien Potencier
68aa0f46a4
Merge remote branch 'jdhoek/master'
...
* jdhoek/master:
Add missing {} around @inheritDoc to fix this class in SF beta2.
Add missing {} around @inheritDoc to fix this class in SF beta2.
2011-05-24 09:53:18 +02:00
Fabien Potencier
674ec1a476
Merge remote branch 'jdhoek/patch-4'
...
* jdhoek/patch-4:
Add missing {} around @inheritDoc to fix this class in SF beta2.
2011-05-24 09:53:14 +02:00
Fabien Potencier
465be3d94c
Merge remote branch 'jdhoek/patch-3'
...
* jdhoek/patch-3:
Add {} around @inheritDoc.
2011-05-24 09:53:10 +02:00
Fabien Potencier
d2570b18f8
Merge remote branch 'jdhoek/patch-2'
...
* jdhoek/patch-2:
Add {} around @inheritDoc
2011-05-24 09:53:04 +02:00
jdhoek
cc5a100418
Add missing {} around @inheritDoc to fix this class in SF beta2.
2011-05-24 00:41:35 -07:00
jdhoek
67cace5d21
Add missing {} around @inheritDoc to fix this class in SF beta2.
2011-05-24 00:40:39 -07:00
jdhoek
7e4419368e
Add missing {} around @inheritDoc to fix this class in SF beta2.
2011-05-24 00:38:15 -07:00
jdhoek
42d33489c5
Add {} around @inheritDoc.
2011-05-24 00:36:03 -07:00
jdhoek
cda87bef23
Add {} around @inheritDoc
2011-05-24 00:33:56 -07:00
jdhoek
c6172e0f96
Add {} around @inheritDoc annotation to fix this class in SF beta2
2011-05-24 00:29:42 -07:00
Christian Raue
0306be6888
removed unnecessary semicolon
2011-05-23 14:39:25 -07:00
everzet
b6ce137e2d
[DependencyInjection] create inlined private service from it's definition
2011-05-23 23:00:38 +03:00
Fabien Potencier
15bede5a63
[Console] refactored style management
...
The current code was broken when a style was defined inline:
<bg=black>Foo</bg=black>
When creatin a new style formatter, it's better to let the formatter
apply the style to the text.
2011-05-23 16:54:36 +02:00
Fabien Potencier
d03961ed03
Merge remote branch 'richardmiller/assetic_jpegtran_options'
...
* richardmiller/assetic_jpegtran_options:
Added call to setOptimize in config for assetic filter jpegtran
2011-05-23 16:17:47 +02:00
Fabien Potencier
ab4352c5cd
[DoctrineBundle] removed the annotation prefix in doctrine:mapping:import (this will work as soon as the EntityGenerator has been updated in Doctrine)
2011-05-23 15:48:29 +02:00
Florin Patan
06f74f8a39
Fix problem with searching files while the open_basedir is in use
2011-05-23 12:54:22 +00:00
Richard Miller
e9548dc80c
Added call to setOptimize in config for assetic filter jpegtran
2011-05-23 13:39:48 +01:00
Fabien Potencier
2636e36bbf
[DoctrineBundle] fixed typo
2011-05-23 13:33:37 +02:00
ouardisoft
52c3bce52d
Edited src/Symfony/Bundle/DoctrineBundle/Command/ImportMappingDoctrineCommand.php via GitHub
2011-05-23 03:16:19 -07:00
Fabien Potencier
07401615a9
Merge remote branch 'schmittjoh/doctrine'
...
* schmittjoh/doctrine:
[DoctrineBundle] fixed regression
2011-05-23 11:08:15 +02:00
Fabien Potencier
7ab3fdeb83
[Finder] added a way to ignore all 'hidden' files
2011-05-23 11:05:58 +02:00