Commit Graph

4744 Commits

Author SHA1 Message Date
Fabien Potencier
e1347e788e [Yaml] tweaked error message 2011-05-14 17:37:28 +02:00
Fabien Potencier
0bfb260f44 Merge remote branch 'usefulthink/issue913-yaml-utf8-checking'
* usefulthink/issue913-yaml-utf8-checking:
  CS fixes in unit-test
  [Yaml] added exceptions when non-utf8 encoding is detected
2011-05-14 17:35:56 +02:00
Fabien Potencier
1e7108d624 Merge remote branch 'stloyd/tests_fix'
* stloyd/tests_fix:
  Skip tests if some vendor are not available (prevents fatal errors)
2011-05-14 17:27:52 +02:00
Adrian Rudnik
0c089d8fe3 [Process] Workaround for windows based stderr bug 2011-05-14 17:25:55 +02:00
Fabien Potencier
9c1bdc6ca4 Merge remote branch 'mvrhov/metadata_defaultgroup_fix'
* mvrhov/metadata_defaultgroup_fix:
  If there is no namespace in classname the 1st character was stripped off
2011-05-14 17:25:51 +02:00
Fabien Potencier
e46e53daa0 Merge remote branch 'stof/graphviz'
* stof/graphviz:
  [DependencyInjection] Fixed a property visibility in GraphvizDumper and removed a useless instanciation in the test
2011-05-14 17:23:50 +02:00
Fabien Potencier
e6766a3189 [Validator] fixed various bugs in previous merge 2011-05-14 17:18:23 +02:00
Fabien Potencier
0c44d5ce55 Merge remote branch 'stloyd/patch-4'
* stloyd/patch-4:
  Fix for bad regexp used in PHP <= 5.3.2. Closes #897
2011-05-14 17:09:15 +02:00
Johannes Schmitt
28bee92c75 [Security/Http] better error message when session times out, or cookies are disabled 2011-05-14 16:41:18 +02:00
Johannes Schmitt
0acffb1a1a [Security/Http] {_locale} can be used as placeholder in target path generation
fixes #861
2011-05-14 16:21:27 +02:00
Johannes Schmitt
48dc85dc43 [Security/Acl] fixes #853 2011-05-14 14:19:55 +02:00
Johannes Schmitt
e516b215f8 updated tests 2011-05-14 13:25:04 +02:00
Johannes Schmitt
b637a3190d revert exception message 2011-05-14 13:25:03 +02:00
Johannes Schmitt
eb1b7f1e46 fixed namespace + class 2011-05-14 13:25:03 +02:00
Johannes Schmitt
a97e8b82d0 [FrameworkBundle][SecurityBundle] fixes a regression in the listener order 2011-05-14 13:25:02 +02:00
Johannes Schmitt
2d8afd8dd6 Merge remote branch 'origin/master' into annotations
Conflicts:
	src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
	src/Symfony/Bundle/FrameworkBundle/Resources/config/validator.xml
	src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
2011-05-14 12:51:05 +02:00
Joseph Bielawski
d235570653 Fix for bad regexp used in PHP <= 5.3.2. Closes #897 2011-05-14 03:43:46 -07:00
Johannes Schmitt
5da7896191 [FrameworkBundle] fixes a regression 2011-05-14 12:37:11 +02:00
stloyd
039292bb94 Skip tests if some vendor are not available (prevents fatal errors) 2011-05-14 12:23:40 +02:00
Fabien Potencier
dbdb3da6bf Merge remote branch 'vicb/form-misc-fix-2'
* vicb/form-misc-fix-2:
  [Form] fix calling closures
  [Form] Add a missing property delcaration in the ResizeFormListener
2011-05-14 11:04:50 +02:00
Fabien Potencier
0cf8ad1946 Merge remote branch 'Chekote/firefox_put_fix'
* Chekote/firefox_put_fix:
  Fixed content type for urlencoded forms being too specific. For example, this will now function will clients (such as Firefox) that append the charset to the content type header. Uses 0 === strpos() as per @kriswallsmith suggestion.
2011-05-14 11:03:21 +02:00
Fabien Potencier
9687d1661b Merge remote branch 'bschussek/form_validator'
* bschussek/form_validator:
  [Form] Renamed the value "text" of the "widget" option of the "date" type to "single-text"
  [Form] Implemented getAllowedOptionValues() for core types
  [Form] Removed unused option
  [Form] Added FormTypeInterface::getAllowedOptionValues() to better validate passed options
  [Form] Improved test coverage of FormFactory and improved error handling
  [Form] Added getType() to FormFactoryInterface
  [Validator] Refactoring DateTimeValidator and DateValidator
  [Validator] Date: check if the value is a DateTime instance
2011-05-14 10:59:02 +02:00
Chekote
41ed194a98 Fixed content type for urlencoded forms being too specific. For example, this will now function will clients (such as Firefox) that append the charset to the content type header. Uses 0 === strpos() as per @kriswallsmith suggestion. 2011-05-13 19:05:28 -05:00
Victor Berchet
3b9c1e3fee [Form] Optimization of PropertyPath 2011-05-13 19:29:41 +02:00
Bernhard Schussek
e0ff61949e [Form] Renamed the value "text" of the "widget" option of the "date" type to "single-text" 2011-05-13 19:17:28 +02:00
Bernhard Schussek
7570e04589 [Form] Implemented getAllowedOptionValues() for core types 2011-05-13 18:58:19 +02:00
Bernhard Schussek
486a01bfe2 [Form] Removed unused option 2011-05-13 18:56:09 +02:00
Bernhard Schussek
da28f8e3b3 [Form] Added FormTypeInterface::getAllowedOptionValues() to better validate passed options 2011-05-13 18:44:03 +02:00
Fabien Potencier
2123006710 [Routing] fixed Route fluent interface 2011-05-13 18:40:40 +02:00
alexandresalome
5aaa78d9ca [Routing] Fix the exception inheritance + Add the LICENCE block in new files 2011-05-13 18:34:42 +02:00
Bernhard Schussek
21013b930c [Form] Improved test coverage of FormFactory and improved error handling 2011-05-13 18:29:18 +02:00
Fabien Potencier
48858cb95b [Routing] added missing Route::setOption() method 2011-05-13 18:17:57 +02:00
alexandresalome
07b7dc0c86 [Routing] Change the Exception namespacing + base class for every exception + update PHPDoc 2011-05-13 17:46:31 +02:00
Bernhard Schussek
fdd18250b3 [Form] Added getType() to FormFactoryInterface 2011-05-13 17:16:36 +02:00
Bernhard Schussek
f801c398eb Merge remote branch 'francisbesset/validators_date_datime' into francis_merge
Conflicts:
	src/Symfony/Component/Validator/Constraints/DateTimeValidator.php
	src/Symfony/Component/Validator/Constraints/DateValidator.php
2011-05-13 17:09:54 +02:00
alexandresalome
05d9e74293 [Routing] Add specific exceptions for the UrlGenerator
When generating URL, thrown exceptions are InvalidArgumentException and
distinction of errors is quite difficult. This modification brings different
exceptions for different cases
2011-05-13 16:59:37 +02:00
Miha Vrhovnik
cd7ab69a17 If there is no namespace in classname the 1st character was stripped off 2011-05-13 16:38:01 +02:00
Fabien Potencier
faab5e4452 [HttpKernel] moved the creation of logs/ and cache/ ealier to be sure that directories exist when extensions want to write something into them 2011-05-13 15:23:20 +02:00
Fabien Potencier
8dbccc7a8b [WebProfilerBundle] re-introduced parameters in the DIC for better overridability 2011-05-13 14:34:19 +02:00
Fabien Potencier
4525eb9690 [AsseticBundle] re-introduced parameters in the DIC for better overridability 2011-05-13 14:34:18 +02:00
Fabien Potencier
f7aea2a830 [FrameworkBundle] re-introduced parameters in the DIC for better overridability 2011-05-13 14:34:17 +02:00
Fabien Potencier
05a946bf9d [DoctrineBundle] re-introduced parameters in the DIC for better overridability 2011-05-13 14:34:16 +02:00
Fabien Potencier
0de8a55f02 [SecurityBundle] re-introduced parameters in the DIC for better overridability 2011-05-13 14:34:14 +02:00
Fabien Potencier
36d60a4a87 [HttpKernel] fixed previous commit 2011-05-13 14:18:58 +02:00
Fabien Potencier
07580335b0 [HttpKernel] changed ExceptionHandler to be more like ErrorHandler 2011-05-13 14:14:36 +02:00
Fabien Potencier
0b367b9489 [DependencyInjection] tweaked error messages 2011-05-13 12:52:44 +02:00
Christophe Coevoet
c2f074b7d5 [DependencyInjection] Fixed a property visibility in GraphvizDumper and removed a useless instanciation in the test 2011-05-13 12:18:09 +02:00
Victor Berchet
ae4bfbada4 [Form] fix calling closures 2011-05-13 11:01:31 +02:00
Victor Berchet
b2b3b190ef [Form] Add a missing property delcaration in the ResizeFormListener 2011-05-13 11:01:27 +02:00
Victor Berchet
87a6fd0f99 [Form] phpDoc 2011-05-13 11:00:04 +02:00
Fabien Potencier
23235d8513 Merge remote branch 'jmikola/patch-1'
* jmikola/patch-1:
  [Form] Refer to FormView explicitly in its own getParent() type-hint
2011-05-13 09:24:45 +02:00
Adrian Rudnik
90f5420ada [Process] Wrong descriptor mode for stderr 2011-05-13 03:08:55 +02:00
Adrian Rudnik
24216b4ee3 Fixed wrong descriptor mode for stderr 2011-05-13 02:22:14 +02:00
Chekote
88d94dd59f Fixed reference to $this, when not in object context 2011-05-12 16:21:13 -05:00
Martin Schuhfuss
571768b9b9 [Yaml] added exceptions when non-utf8 encoding is detected
encoding is detected using the `mb_detect_encoding()`-function
in strict-mode. Checking is done before the parsing starts.
Without this patch, the calls to `preg_replace()` using the
'u'-modifier would cause the non-utf8-string being processed
to be empty when parsing starts which makes the parsing return
no result.
2011-05-12 22:02:56 +02:00
Chekote
ebab0a3ac2 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-12 10:55:14 -05:00
Fabien Potencier
8f426c0c77 [HttpKernel] added an exception handler to be used during boot time
This can be used as a PHP exception handler:

set_exception_handler(new DebugExceptionHandler());
2011-05-12 17:49:37 +02:00
Fabien Potencier
4adb4e9dc0 merged schmittjoh/removeExits 2011-05-12 17:47:59 +02:00
Joseph Bielawski
23b34749f9 Fix for bug when using APC in version 3.1.4 2011-05-12 07:50:47 -07:00
Joseph Bielawski
ec3ea65819 Throw an exception when APC is not loaded but cache is enabled in app config 2011-05-12 07:44:22 -07:00
lenar
2a09fe5e09 More information about exception when logging 2011-05-12 17:00:46 +03:00
Fabien Potencier
02a81de9d6 Merge remote branch 'fabpot/form-put'
* fabpot/form-put:
  [HttpFoundation] fixed typo
  [HttpFoundation] moved the PUT magic dance in createFromGlobals()
  added support for PUT method
2011-05-12 14:46:12 +02:00
Fabien Potencier
0848604ce1 [HttpFoundation] fixed typo 2011-05-12 14:45:39 +02:00
Fabien Potencier
08846af9e2 [HttpFoundation] moved the PUT magic dance in createFromGlobals() 2011-05-12 14:45:38 +02:00
Fabien Potencier
efd1f1358c added support for PUT method 2011-05-12 14:45:38 +02:00
Fabien Potencier
ae9ab29c0c Merge remote branch 'weaverryan/security_context_exception_improvement'
* weaverryan/security_context_exception_improvement:
  [Security] Improving the exception when the security context has no token
2011-05-12 14:41:31 +02:00
Fabien Potencier
3a16f3141a Merge remote branch 'lenar/monolog-group-handler'
* lenar/monolog-group-handler:
  [MonologBundle] Add AbstractProcessingHandler to list of compiled classes
  [MonologBundle] Fix schema XML (_ -> -)
  [MonologBundle] Fix config definitions, remove now-redundant tests
  [MonologBundle] Add missing GroupHandler schema definitions
  [MonologBundle] Add missing MailHandler schema definitions
  [MonologBundle] Add support for GroupHandler
2011-05-12 14:40:28 +02:00
Fabien Potencier
aebc529e8e Merge remote branch 'jsor/response_tostring'
* jsor/response_tostring:
  [HttpFoundation] replaced LF by CRLF as per the spec
2011-05-12 14:36:36 +02:00
Fabien Potencier
0a3ff1c737 [HttpKernel] fixed default ESI cache strategy when the page does not contain ESIs 2011-05-12 13:54:48 +02:00
lenar
0985f16030 [MonologBundle] Add AbstractProcessingHandler to list of compiled classes 2011-05-12 12:18:56 +03:00
lenar
d6d3516d84 [MonologBundle] Fix schema XML (_ -> -) 2011-05-12 12:02:03 +03:00
lenar
b734a63b81 [MonologBundle] Fix config definitions, remove now-redundant tests 2011-05-12 11:31:53 +03:00
lenar
b8f57c4bcd [MonologBundle] Add missing GroupHandler schema definitions 2011-05-12 10:52:47 +03:00
lenar
20c77ac400 [MonologBundle] Add missing MailHandler schema definitions 2011-05-12 10:50:32 +03:00
Beau Simensen
7adedf9ce9 [HttpKernel] Fix to disable busyTimeout if it does not exist. 2011-05-11 17:09:59 -07:00
jsor
d39c3be779 [HttpFoundation] replaced LF by CRLF as per the spec 2011-05-12 00:08:05 +02:00
Jeremy Mikola
61dc1af65b [Form] Refer to FormView explicitly in its own getParent() type-hint
Using "self" makes mocking impossible, as the type-hint would then refer to the extending class and make the declaration incompatible.
2011-05-11 14:11:43 -07:00
Ryan Weaver
1de34fde98 [Security] Improving the exception when the security context has no token
This either mostly - or always - means that no firewall is currently activated. This message tries to alert the user to this.

Reword
2011-05-11 15:09:36 -05:00
Fabien Potencier
0bad012290 [FrameworkBundle] changed template string by TemplateReference instances in ExceptionController 2011-05-11 18:33:59 +02:00
Fabien Potencier
514b47c6d4 [FrameworkBundle] added a simple way to customize errors according to the HTTP status code 2011-05-11 18:02:50 +02:00
Victor Berchet
f68d16fdff [Form] Fix the Form fluid interface 2011-05-11 17:08:53 +02:00
Fabien Potencier
3ec3fa219b [HttpKernel] fixed a hardcoded variable 2011-05-11 16:43:00 +02:00
stloyd
5997b930a5 Refactoring of IpValidator to use native php filter extension, also adding additional flag support and test cover. 2011-05-11 13:19:03 +02:00
Jeremie Augustin
0077963584 fix file permissions to 644 2011-05-11 11:19:21 +02:00
Jeremie Augustin
b5277752b7 [Form] add type_options for CollectionType to be abble to set options to type 2011-05-11 11:19:21 +02:00
lenar
40795fcc5d [MonologBundle] Add support for GroupHandler 2011-05-11 12:17:04 +03:00
Fabien Potencier
c6b598fa52 Merge remote branch 'vicb/form-doc-method-order'
* vicb/form-doc-method-order:
  [Form] Order method according to their visibility to respect the CS
  [Form] Add phpDoc for form builder and fix method declaration order to conform to the CS
2011-05-11 11:07:37 +02:00
Fabien Potencier
7941ff61f0 [FrameworkBundle] added a note 2011-05-11 11:05:57 +02:00
Fabien Potencier
09de9fe85f Merge remote branch 'danielholmes/client_kernel_shutdown'
* danielholmes/client_kernel_shutdown:
  [FrameworkBundle] added a check in Client to only shutdown the kernel if a previous request has been made
2011-05-11 11:04:14 +02:00
Victor Berchet
2db53b5e28 [Form] Order method according to their visibility to respect the CS 2011-05-11 11:00:32 +02:00
Victor Berchet
5536d41906 [Form] Add phpDoc for form builder and fix method declaration order to conform to the CS 2011-05-11 11:00:32 +02:00
Fabien Potencier
e2df25b43a made a slight change to the previous merge 2011-05-11 10:45:23 +02:00
Fabien Potencier
b7d64c5304 Merge remote branch 'danielholmes/functional_test_changes'
* danielholmes/functional_test_changes:
  [FrameworkBundle] fixed CS
  [FrameworkBundle][HttpKernel] added a default tearDown on the WebTestCase which will shut down the currently used kernel (if there is one) in Web functional tests
2011-05-11 10:33:23 +02:00
Fabien Potencier
1ae5ef6849 Merge remote branch 'vicb/form-padded-choice-list'
* vicb/form-padded-choice-list:
  [Form] Allow for arbitrary keys in PaddedChoiceList
2011-05-11 10:18:30 +02:00
Fabien Potencier
9abd53c2b4 merged Seldaek/serializer_fix 2011-05-11 10:16:15 +02:00
Fabien Potencier
a05b8fbb19 Merge remote branch 'schmittjoh/security'
* schmittjoh/security:
  [HttpFoundation] fixed php doc
  updated UPDATE file
  [Security] use deep flag when retrieving username + password
  [HttpFoundation] added $deep flag to Request::get()
  [HttpFoundation] removed getDeep(), added a boolean flag to get() instead
2011-05-11 10:14:15 +02:00
Fabien Potencier
b62cd109f0 Merge remote branch 'vicb/form-fixes'
* vicb/form-fixes:
  [Form] Make the PropertyPathMapper class use the UnexpectedTypeException
  [Form] Fix adding transformers in the FormBuilder
  [Form] Fix the ReversedTransform class
2011-05-11 10:13:24 +02:00
Fabien Potencier
9651175914 Merge remote branch 'vicb/form-transformers'
* vicb/form-transformers:
  [Form] Add argument type checking in BaseDateTimeTransformer
  [Form] Catch exceptions in DataTransformers
2011-05-11 10:12:23 +02:00
Fabien Potencier
723a8f2bf3 [Form] fixed CS 2011-05-11 10:09:27 +02:00
Fabien Potencier
534cf8fce7 Merge remote branch 'vicb/form-tz-choice-list'
* vicb/form-tz-choice-list:
  [Form] Make TimezoneChoiceList implement ChoiceListInterface rather than extend ArrayChoiceList
2011-05-11 10:07:35 +02:00
Fabien Potencier
74adb80cb8 Merge remote branch 'kertz/sqlite3_timeout'
* kertz/sqlite3_timeout:
  added busyTimeout
2011-05-11 10:06:25 +02:00
Fabien Potencier
2d1113ea8d Merge remote branch 'Seldaek/doctrine_fix'
* Seldaek/doctrine_fix:
  [DoctrineBundle] Do not try to fetch doctrine listeners if doctrine is not enabled
2011-05-11 10:01:12 +02:00
Victor Berchet
adef14f687 [Form] Make the PropertyPathMapper class use the UnexpectedTypeException 2011-05-10 20:25:46 +02:00
Victor Berchet
daccf9bc17 [Form] Fix adding transformers in the FormBuilder 2011-05-10 20:25:30 +02:00
Victor Berchet
486294b50b [Form] Fix the ReversedTransform class 2011-05-10 20:25:22 +02:00
Johannes Schmitt
7a6638ff8f [HttpFoundation] fixed php doc 2011-05-10 20:24:58 +02:00
Victor Berchet
2e68801ff3 [Form] Add argument type checking in BaseDateTimeTransformer 2011-05-10 20:21:02 +02:00
Victor Berchet
dac798c791 [Form] Catch exceptions in DataTransformers 2011-05-10 20:21:02 +02:00
Victor Berchet
aa71d16812 [Form] Make TimezoneChoiceList implement ChoiceListInterface rather than extend ArrayChoiceList 2011-05-10 20:14:11 +02:00
Amal Raghav
acb657b82c added busyTimeout 2011-05-10 23:43:11 +05:30
Victor Berchet
eca6453558 [Form] Fix the fluid interface of FormBuilder 2011-05-10 20:09:37 +02:00
Victor Berchet
75a499b0e2 [Form] Fix the fluid interface of FormBuilder 2011-05-10 20:09:28 +02:00
Fabien Potencier
9cc7aacf76 Merge remote branch 'usefulthink/phpdoc-containeraware'
* usefulthink/phpdoc-containeraware:
  removed obsolete use-statement
  [DependencyInjection] added phpdoc for property $container in ContainerAware
2011-05-10 19:09:55 +02:00
Fabien Potencier
f9fefd306d Merge remote branch 'vicb/form-phpdoc'
* vicb/form-phpdoc:
  [Form] Fix some phpDoc
  [Form] fix and add some phpDoc
2011-05-10 19:08:53 +02:00
Fabien Potencier
579db9a9d5 Merge remote branch 'hason/czechmessages'
* hason/czechmessages:
  [FrameworkBundle] Validator messages: added Czech translation
2011-05-10 19:02:34 +02:00
Victor Berchet
2d62dfdf83 [Form] Fix some phpDoc 2011-05-10 16:55:05 +02:00
Martin Schuhfuss
9112d8c2d3 removed obsolete use-statement 2011-05-10 16:34:44 +02:00
Martin Schuhfuss
5387532ff2 [DependencyInjection] added phpdoc for property $container in ContainerAware
This should ease code-completion a little bit...
2011-05-10 16:30:58 +02:00
Victor Berchet
2a8f2d2bfa [Form] fix and add some phpDoc 2011-05-10 15:33:02 +02:00
Martin Hason
7f95ea69aa [FrameworkBundle] Validator messages: added Czech translation 2011-05-10 14:18:57 +02:00
Jordi Boggiano
c2a8ca782b [DoctrineBundle] Do not try to fetch doctrine listeners if doctrine is not enabled 2011-05-10 14:10:24 +02:00
Christophe Coevoet
a54d6b7e58 [DependencyInjection] Removed the public keyword from interface 2011-05-10 13:55:08 +02:00
John Wards
d96e2c5d79 [Validator] Adding support for Closure in CallbackValidator
Usage:
$formBuilder = $this->get('form.factory')
            ->createBuilder('form');
$formBuilder->setAttribute('validation_constraint', new Callback(array("methods"=>array(
    'validate' => function ($data, $context) use ($elements) {
       // logic to add violations depending on the elements
    }
))));
2011-05-10 12:12:18 +01:00
Johannes Schmitt
9408ab3010 [Security] use deep flag when retrieving username + password 2011-05-10 11:22:28 +02:00
Johannes Schmitt
411659bc07 [HttpFoundation] added $deep flag to Request::get() 2011-05-10 11:19:22 +02:00
Johannes Schmitt
89f60e04d1 [HttpFoundation] removed getDeep(), added a boolean flag to get() instead 2011-05-10 11:16:25 +02:00
Jordi Boggiano
9e19e772bc [Serializer] Restored docblocks from the deleted methods on SerializerInterface 2011-05-10 09:27:20 +02:00
Jordi Boggiano
457dc105bc [Serializer] minor optimization 2011-05-10 09:19:55 +02:00
Jordi Boggiano
99c67134fe [Serializer] Split decoder/encoder maps 2011-05-10 09:17:33 +02:00
Fabien Potencier
3854d34c14 [DoctrineBundle] fixed doctrine:generate:entity command when the entity to generate has sub-namespaces 2011-05-10 08:20:57 +02:00
Christophe Coevoet
1bb6b97c1c [DependencyInjection] Added missing methods in the ParameterBagInterface
The Container relies on the resolve() value which was not part of
the interface.
2011-05-10 02:34:02 +02:00
Christophe Coevoet
b6c36de134 [DependencyInjection] Fixed phpdoc 2011-05-10 02:33:34 +02:00
Kris Wallsmith
b25750daa9 Revert "[AsseticBundle] updated configuration to assume values with integer keys are inputs"
This reverts commit fb104cedf8.
2011-05-09 14:58:30 -07:00
Fabien Potencier
9844685a40 [HttpKernel] tweaked the default ESI cache strategy 2011-05-09 19:28:36 +02:00
Fabien Potencier
80a5074746 [Form] tweaked code (closes #855) 2011-05-09 17:53:18 +02:00
Jordi Boggiano
e6a02482c7 [Serializer] Cleaned up SerializerAwareInterface 2011-05-09 17:43:50 +02:00
Kris Wallsmith
fb104cedf8 [AsseticBundle] updated configuration to assume values with integer keys are inputs 2011-05-09 08:14:00 -07:00
lenar
7cc2a7918c fixes monolog+swiftmailer 2011-05-09 18:03:38 +03:00
Victor Berchet
6c337d1cc0 [Form] Do not set the value attribute for file inputs 2011-05-09 17:00:19 +02:00
Christophe Coevoet
193c6acfc0 [MonologBundle] Fixed SwiftMailerHandler by using the mailer as message factory 2011-05-09 16:35:02 +02:00
Kris Wallsmith
94bd1c4655 [AsseticBundle] made test of route loader less brittle 2011-05-09 06:32:06 -07:00
Fabien Potencier
05e75e2712 [Finder] made the Custom filter accept all PHP callbacks 2011-05-09 15:30:41 +02:00
Victor Berchet
e0f03471ae Merge branch 'master' into form-padded-choice-list 2011-05-09 15:30:04 +02:00
Fabien Potencier
e1c52764ce [Finder] refactored SortableIterator 2011-05-09 15:14:42 +02:00
Kris Wallsmith
e8e87e65f7 [AsseticBundle] added the ability to define assets outside of the view layer
In config.yml:

    assetic:
        assets:
            jquery: js/jquery.js
            plugin1:
                - @jquery
                - js/jquery.plugin1.js
            all_js:
                - @plugin1
                filters: ?yui_js
            all_css:
				- css/*.scss
                filters: [ scss, ?yui_css ]
        filters:
            yui_css:
                jar: %kernel.root_dir%/Resources/java/yui.jar
            yui_js:
                jar: %kernel.root_dir%/Resources/java/yui.jar
            scss: ~

In Twig:

    {% javascripts '@all_js' %}
    <script src="{{ asset_url }}"></script>
    {% endjavascripts %}

    {% stylesheets '@all_css' %}
    <link href="{{ asset_url }}" type="text/css" rel="stylesheet" />
    {% endstylesheets %}
2011-05-09 05:40:14 -07:00
Fabien Potencier
50c1cce014 Merge remote branch 'schmittjoh/security'
* schmittjoh/security:
  [HttpFoundation] added unit test
  [Security][HttpFoundation] splits Request::hasSession() into hasSession(), and hasPreviousSession()
  [SecurityBundle] added some tests
  add provider to configuration
  update DI to handle change in config and another provider
  separate dbal specific acl config
  add provider to configuration
  update DI to handle change in config and another provider
  separate dbal specific acl config
2011-05-09 14:26:36 +02:00
Kris Wallsmith
57251712e8 [AsseticBundle] injected container into factory for better stability 2011-05-09 05:24:47 -07:00
Fabien Potencier
4bb82451df Merge remote branch 'Seldaek/session_warn'
* Seldaek/session_warn:
  [HttpFoundation] Remove warnings when session id isn't given
2011-05-09 14:14:17 +02:00
Fabien Potencier
b1f91f8ddc Merge remote branch 'Seldaek/session_storage'
* Seldaek/session_storage:
  [FrameworkBundle] Do not override the session storage for test
2011-05-09 14:13:19 +02:00
Jordi Boggiano
f8447aa74c [Serializer] NormalizableInterface now takes a Serializer and make sure the is always optional 2011-05-09 13:59:54 +02:00
Fabien Potencier
757dcb3b4c Merge remote branch 'stof/monolog_compiled_classes'
* stof/monolog_compiled_classes:
  [MonologBundle] Fixed compiled classes
2011-05-09 13:54:08 +02:00
Fabien Potencier
7dab0e1190 Merge remote branch 'yethee/form_fixes'
* yethee/form_fixes:
  [Form] Added missing import statement of namespaces.
2011-05-09 13:53:50 +02:00
Fabien Potencier
0c46797a35 fixed CS 2011-05-09 13:52:49 +02:00
Fabien Potencier
9286f78116 Merge remote branch 'usefulthink/windows-symlink-errormessage'
* usefulthink/windows-symlink-errormessage:
  [FrameworkBundle] added errormessage for windows in AssetsInstallCommand
2011-05-09 13:52:05 +02:00
jsor
e4c87cf558 Corrected german spelling of email (See: http://de.wikipedia.org/wiki/E-Mail#Artikel_und_Schreibweise) 2011-05-09 13:47:57 +02:00
Christophe Coevoet
47a2e25bfa [MonologBundle] Fixed compiled classes 2011-05-09 13:07:45 +02:00
Deni
a15abc09bd [Form] Added missing import statement of namespaces. 2011-05-09 14:30:04 +04:00
Martin Schuhfuss
ad41d21675 [FrameworkBundle] added errormessage for windows in AssetsInstallCommand
As it has recently been discussed [on the mailing-list][1], windows doesn't
support symlinks for the assets:install command. In order to avoid a 'call to
undefined-function'-message in this case, this patch adds an exception which
will be thrown when the symlink-funktion isn't present and the
`--symlink`-Option was specified.

[1]: https://groups.google.com/group/symfony-devs/browse_thread/thread/4b8ad9634bdab155
2011-05-09 12:11:54 +02:00
Fabien Potencier
e1e365d75a Merge remote branch 'udat/translator-typo'
* udat/translator-typo:
  [FrameworkBundle] Fixed typo
2011-05-09 09:01:26 +02:00
Fabien Potencier
d7a97f441c Merge remote branch 'maoueh/acl_security_config_fix'
* maoueh/acl_security_config_fix:
  [Security\Acl] Fixed hardcoded table names  * Replaced hardcoded table names by acl configuration options
2011-05-09 08:59:43 +02:00
Fabien Potencier
cde14d181a Merge remote branch 'stof/profiler'
* stof/profiler:
  [FrameworkBundle] Changed the priority of the ProfilerListener
2011-05-09 08:58:06 +02:00
Fabien Potencier
7a509cd199 Merge remote branch 'pborreli/toString-fix'
* pborreli/toString-fix:
  [Validator] Fixing method_exists
2011-05-09 08:57:41 +02:00
Fabien Potencier
5d55b231bb merged monolog 2011-05-09 08:56:30 +02:00
Fabien Potencier
a756553dd5 Merge remote branch 'lsmith77/get_set_normalizer_typo_fix'
* lsmith77/get_set_normalizer_typo_fix:
  typo fix
2011-05-09 08:51:57 +02:00
Fabien Potencier
b99b1e1e59 Merge remote branch 'kriswallsmith/assetic/dump-fix'
* kriswallsmith/assetic/dump-fix:
  [AsseticBundle] made some methods private
  [AsseticBundle] added a test of dumping in debug mode
  [AsseticBundle] added test of dumping one asset
  [AsseticBundle] added the beginnings of a test class for the assetic:dump command
  [AsseticBundle] updated dump command to dump leaf assets per debug mode
  [AsseticBundle] rearranged execute() method
  [AsseticBundle] moved debug flag to object property
  [AsseticBundle] moved asset manager to object property
  [AsseticBundle] moved base path to object property
2011-05-09 08:51:39 +02:00
Christophe Coevoet
d8e6ab7f7a [MonologBundle] Added the support of SwiftMailerHandler and NativeMailerHandler 2011-05-08 21:07:00 +02:00
Artur Kotyrba
1985333583 [FrameworkBundle] Fixed typo 2011-05-08 21:02:16 +02:00
Christophe Coevoet
a4a40f57cd [MonologBundle] Moved default values to the Configuration class 2011-05-08 19:52:38 +02:00
Jordi Boggiano
3b88608d85 [Serializer] Fixed typo 2011-05-08 18:34:06 +02:00
Jordi Boggiano
9311b0a7e5 [Serializer] Removed properties argument 2011-05-08 18:32:22 +02:00
Jordi Boggiano
89e056bb8b [Serializer] Renamed AbstractEncoder/Normalizer to SerializerAwareEncoder/Normalizer 2011-05-08 18:20:53 +02:00
Jordi Boggiano
1f8defaeeb [Serializer] JsonEncoder doesn't need SerializerAware anymore 2011-05-08 18:17:42 +02:00
Jordi Boggiano
24dcfef33f [Serializer] Added NormalizationAwareInterface 2011-05-08 18:16:53 +02:00
Jordi Boggiano
c20b4a3950 [Serializer] Cleaned up NormalizerInterface 2011-05-08 18:15:00 +02:00
Jordi Boggiano
4104c7b073 [Serializer] Inlined back the logic from isStructuredType and removed the method 2011-05-08 18:14:44 +02:00
Jordi Boggiano
3ecc9602e4 [Serializer] Add checks for SerializerAwareInterface 2011-05-08 17:54:55 +02:00
Jordi Boggiano
01a104916b [Serializer] Implement SerializerAwareInterface 2011-05-08 17:53:37 +02:00
Jordi Boggiano
8263b09b5c [Serializer] Properly check for the DecoderInterface 2011-05-08 17:52:25 +02:00
Jordi Boggiano
fe7119da8a [Serializer] serialize shouldn't normalize since it's the encoder's job to do that when they require it 2011-05-08 15:17:42 +02:00
Johannes Schmitt
315ef8498b [WebProfilerBundle] removed @ignorePhpDoc annotations 2011-05-08 07:30:10 +02:00
Johannes Schmitt
f7e03f2d87 Merge remote branch 'origin/master' into annotations
Conflicts:
	UPDATE.md
	src/Symfony/Bundle/DoctrineBundle/Resources/config/orm.xml
	src/Symfony/Bundle/DoctrineBundle/Tests/DependencyInjection/AbstractDoctrineExtensionTest.php
2011-05-08 07:28:23 +02:00
Matthieu Vachon
0da289cfbc [Security\Acl] Fixed hardcoded table names
* Replaced hardcoded table names by acl configuration options
2011-05-07 20:56:22 -04:00
Pascal Borreli
e60a68f2c6 [Validator] Fixing method_exists
see dea5b26c3f
2011-05-07 19:08:30 +00:00
Christophe Coevoet
87391119be [FrameworkBundle] Changed the priority of the ProfilerListener
Running it before other onCoreResponse listeners avoids seeing them
as called listeners in the event panel. The priority is set to -100
because it has to be called before the WebProfilerListener (-128) so
that the token is set.
2011-05-07 20:40:30 +02:00
Christophe Coevoet
eab8ffc5ef [MonologBundle] Added a proper exception when the handler type is invalid 2011-05-07 17:54:14 +02:00
Kris Wallsmith
545a7fdcb9 [AsseticBundle] made some methods private 2011-05-07 08:06:48 -07:00
Lukas Kahwe Smith
9f32345887 typo fix 2011-05-07 17:02:06 +02:00
Kris Wallsmith
539ae49f62 [AsseticBundle] added a test of dumping in debug mode 2011-05-07 07:58:29 -07:00
Kris Wallsmith
520941d60d [AsseticBundle] added test of dumping one asset 2011-05-07 07:57:38 -07:00
Kris Wallsmith
6f03a08714 [AsseticBundle] added the beginnings of a test class for the assetic:dump command 2011-05-07 07:32:13 -07:00
Kris Wallsmith
f78be41355 [AsseticBundle] updated dump command to dump leaf assets per debug mode 2011-05-07 07:32:12 -07:00
Christophe Coevoet
c90c79472c [MonologBridge] Removed useless method 2011-05-07 10:38:06 +02:00
Christophe Coevoet
0ed6d04a5f [MonologBundle] Moved the handlers to the Bridge namespace 2011-05-07 10:35:19 +02:00
Kris Wallsmith
9e19cac3c0 [AsseticBundle] rearranged execute() method 2011-05-06 19:16:32 -07:00
Kris Wallsmith
547610a631 [AsseticBundle] moved debug flag to object property 2011-05-06 19:13:07 -07:00
Kris Wallsmith
918ece8baf [AsseticBundle] moved asset manager to object property 2011-05-06 19:11:56 -07:00
Kris Wallsmith
a11f18687b [AsseticBundle] moved base path to object property 2011-05-06 17:23:13 -07:00
Kris Wallsmith
f3b077a0dd [Form] removed a bunch of unused use statements 2011-05-06 14:07:16 -07:00
Drew Butler
dea5b26c3f Method exists does not work if you append the () to the method name, thus this never words for objects that actually have the __toString method. Removed the erroneous () so that this works as it appears to have been intended. 2011-05-06 13:20:29 -07:00
Fabien Potencier
d1c6e44082 Merge remote branch 'stof/firephp'
* stof/firephp:
  [MonologBundle] Fixed CS
  [MonologBundle] Fixed the handling of subrequests in FirePHPHandler
2011-05-06 22:14:25 +02:00
Fabien Potencier
c98bf4ff94 Merge remote branch 'Seldaek/serializer'
* Seldaek/serializer:
  [Serializer] CS fixes
  [Serializer] Split supports in supportsNormalization and supportsDenormalization
  [Serializer] Add support for Traversable objects
  Fixed docs typo
  [Serializer] updated SerializerInterface
2011-05-06 22:13:18 +02:00
Fabien Potencier
8043230bd6 Merge remote branch 'stof/doctrine_mapping'
* stof/doctrine_mapping:
  [DoctrineBundle] Removed orm reference in DoctrineAbstractBundle
2011-05-06 22:12:30 +02:00
Christophe Coevoet
e3ae374b47 [DoctrineBundle] Removed orm reference in DoctrineAbstractBundle 2011-05-06 21:53:40 +02:00
Jordi Boggiano
b9a2eb66e9 [Serializer] CS fixes 2011-05-06 19:37:13 +02:00
Jordi Boggiano
ded30a2937 [Serializer] Split supports in supportsNormalization and supportsDenormalization 2011-05-06 19:36:56 +02:00
Jordi Boggiano
919f16a7d6 [Serializer] Add support for Traversable objects 2011-05-06 19:04:39 +02:00
Jordi Boggiano
7a06421cb1 Fixed docs typo 2011-05-06 19:04:22 +02:00
Jordi Boggiano
d6afe63d2a Merge branch 'serializerLight' of http://github.com/schmittjoh/symfony into serializer 2011-05-06 18:39:02 +02:00
Christophe Coevoet
0704bc348b [MonologBundle] Fixed CS 2011-05-06 18:02:32 +02:00
Christophe Coevoet
5afe7d20a6 [MonologBundle] Fixed the handling of subrequests in FirePHPHandler 2011-05-06 18:01:38 +02:00
Jordi Boggiano
43484c21a6 [FrameworkBundle] Do not override the session storage for test 2011-05-06 17:04:37 +02:00
Jordi Boggiano
36aa7b0d70 [HttpFoundation] Remove warnings when session id isn't given 2011-05-06 16:25:44 +02:00
Fabien Potencier
f1f379b031 [Finder] simplified code 2011-05-06 14:16:23 +02:00
Johannes Schmitt
ec1199eda7 [Serializer] updated SerializerInterface 2011-05-06 13:01:19 +02:00
Fabien Potencier
3e21e07570 Merge remote branch 'schmittjoh/config'
* schmittjoh/config:
  [Config] some exception improvements
2011-05-06 12:38:12 +02:00
Fabien Potencier
62c0b10b88 [FrameworkBundle] prevented search engine indexing on exception pages 2011-05-06 12:33:37 +02:00
Fabien Potencier
f23044f63b Merge remote branch 'ptheg/master'
* ptheg/master:
  Search engines should not indexing Profiler
2011-05-06 12:31:49 +02:00
Fabien Potencier
dfd5b653cb [DoctrineBundle] changed mapping file suffix from .orm.dcm.yml to .orm.yml 2011-05-06 11:23:00 +02:00
Fabien Potencier
0cdd6ca4e2 [DoctrineBundle] added --path option to doctrine:generate:entities 2011-05-06 11:19:19 +02:00
Victor Berchet
68b3d0d5ac [Form] Allow for arbitrary keys in PaddedChoiceList 2011-05-06 10:31:51 +02:00
Geyer Pierre
daeedb5705 Search engines should not indexing Profiler 2011-05-06 07:58:35 +02:00
Johannes Schmitt
486ecdc6a6 [Config] some exception improvements 2011-05-05 19:43:08 +02:00
Fabien Potencier
d9299e930b [DoctrineBundle] changed mapping directory
From Resources/config/ to Resources/config/doctrine
From doctrine.orm.dcm.xml to mapping.orm.dcm.xml
2011-05-05 18:12:21 +02:00
Fabien Potencier
3f69333acb [HttpKernel] refactored the ErrorHandler class 2011-05-05 08:53:16 +02:00
Fabien Potencier
ca3c5e652e moved ErrorHandler management to the distributions 2011-05-05 08:53:13 +02:00
Fabien Potencier
0f0e5817b1 [HttpKernel] added a Kernel::init() method 2011-05-05 08:44:36 +02:00
Johannes Schmitt
362b7264d1 [Security][HttpFoundation] splits Request::hasSession() into hasSession(), and hasPreviousSession()
This closes #774, and fixes #772.
2011-05-05 08:38:07 +02:00
Fabien Potencier
aba8f1e180 [ClassLoader] added a debug class loader 2011-05-05 08:28:12 +02:00
Johannes Schmitt
c3084050a0 [SecurityBundle] added some tests 2011-05-05 08:20:35 +02:00
Johannes Schmitt
f787a2a748 Merge branch 'acl' of https://github.com/IamPersistent/symfony into security 2011-05-05 08:06:31 +02:00
Daniel Holmes
b98f786d66 [TwigBundle] fixed form templates so divs won't have all the input attributes, some of which are invalid (such as required, maxlength, name, etc) 2011-05-05 11:20:08 +10:00
Fabien Potencier
fe9ef5c68b [Routing] fixed deep nested route collections (closes #770) 2011-05-04 23:29:47 +02:00
Michel Weimerskirch
476644a92c [Form] Support for the HTML5 "pattern" attribute, see http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#the-pattern-attribute
If you use the MinLength validator with your entities, the ValidatorTypeGuesser gets the value, stored as "minlength". Then, the FormFactory generates a "pattern" attribute out of minlength and maxlength.
Modern browsers such as Chrome use this attribute to validate the form before submitting.
a "pattern" attribute is generated that validates the
2011-05-04 23:16:41 +02:00
Fabien Potencier
36bcfcc5ee Merge remote branch 'bschussek/form'
* bschussek/form:
  [Form] CSRF fields are not included in the children of a FormView anymore if the view is not the root
  [Form] FormView::offsetUnset() is now supported. It was possible anyway using getChildren() and setChildren().
  [Form] Split the option "modifiable" of the "collection" type into "allow_add" and "allow_delete"
  [Form] Added test for last commit by kriswallsmith and improved dealing with original names
  [Form] Fixed variable scope when entering nested form helpers
  [Form] Added tests for blocks/templates in the format _<ID>_(widget|row|label|...)
  [Form] updated listener to check that data is an array
2011-05-04 22:13:33 +02:00
Fabien Potencier
b7c8442068 [DoctrineBundle] made Doctrine metadata configuration easier
You can now configure your Doctrine metadata in one single file named 'doctrine':

  Resources/config/doctrine.orm.dcm.yml
  Resources/config/doctirne.orm.dcm.xml

You can still use one file per entity, but the directory has changed (see the UPDATE file)
2011-05-04 19:58:48 +02:00
Fabien Potencier
ec226cd4bc [DoctrineBundle] fixed doctrine:generate:entities 2011-05-04 19:38:36 +02:00
Fabien Potencier
c200b42e89 Merge remote branch 'kriswallsmith/http/forwarded-secure'
* kriswallsmith/http/forwarded-secure:
  [HttpFoundation] added support for X-Forwarded-Port request header
2011-05-04 19:12:32 +02:00
Kris Wallsmith
ae46150bc8 [HttpFoundation] added support for X-Forwarded-Port request header 2011-05-04 09:56:34 -07:00
Fabien Potencier
e150ffd699 Merge remote branch 'Bart00/patch-1'
* Bart00/patch-1:
  Change "zou moeten" to "moet", ("zou moeten" implies that the problem is not so severe and was translated from english too literally) Also  fixes some typo's
2011-05-04 18:51:26 +02:00
Bernhard Schussek
74cca63938 [Form] CSRF fields are not included in the children of a FormView anymore if the view is not the root 2011-05-04 18:27:20 +02:00
Bernhard Schussek
173beeba74 [Form] FormView::offsetUnset() is now supported. It was possible anyway using getChildren() and setChildren(). 2011-05-04 18:21:49 +02:00
Bernhard Schussek
3cc5d9f4cd [Form] Split the option "modifiable" of the "collection" type into "allow_add" and "allow_delete" 2011-05-04 17:29:59 +02:00
Bernhard Schussek
bf1dfbbe99 [Form] Added test for last commit by kriswallsmith and improved dealing with original names
The form component should now guarantee to always pass an UploadedFile object to your model. There you can call getOriginalName() to retrieve the original name of the uploaded file. For security reasons, the real file name is a generated hash value.
2011-05-04 17:04:44 +02:00
Fabien Potencier
86d0ddb4e3 [DoctrineBundle] split Registry::getEntityManager() in two methods
Resetting an entity manager has a lot of consequences and the developer should
be aware of that. So, instead of implicitly reset an entity manager when it is
closed, the developer should reset it by hand if he thinks that this is
possible:

    $em = $this->get('registry')->getEntityManager();
    $em->getConnection()->beginTransaction(); // suspend auto-commit
    try {
        //... do some work
    } catch (Exception $e) {
        $em->getConnection()->rollback();
        $em->close();

        $this->get('registry')->resetEntityManager();
    }

    // you will get a new one
    $em = $this->get('registry')->getEntityManager();
2011-05-04 16:23:47 +02:00
Bernhard Schussek
4c6f26f008 Merge remote branch 'kriswallsmith/form/fix-upload-fix' into kris_merge 2011-05-04 15:51:20 +02:00
Bernhard Schussek
eb50d766da [Form] Fixed variable scope when entering nested form helpers
The consequence of this commit is that variables are accessible that have been passed to a surrounding form helper.

Example template:

{% block my_widget_label %}
    <label>{{ label }}
{% endblock %}

{% block my_widget_row %}
    {# It is not necessary to explicitely pass through the label variable #}
    {{ form_label(form) }}
    {{ form_widget(form) }}
{% endblock %}

Example usage:

{{ form_row(form.mywidget, { 'label': 'My Widget' }) }}
2011-05-04 15:40:15 +02:00
Bernhard Schussek
38098604af [Form] Added tests for blocks/templates in the format _<ID>_(widget|row|label|...) 2011-05-04 15:33:51 +02:00
Daniel Holmes
dd692c0203 [Form] fixed transformation failed exception 2011-05-04 05:51:03 -07:00
Bart00
f9940b4175 Change "zou moeten" to "moet", ("zou moeten" implies that the problem is not so severe and was translated from english too literally)
Also  fixes some typo's
2011-05-04 05:11:50 -07:00
Fabien Potencier
2e5bd42be3 Merge remote branch 'hollodk/master'
* hollodk/master:
  Made some better translation.
  First sample of translation.
2011-05-04 13:00:33 +02:00
Michael Holm
dc58b79e58 Made some better translation. 2011-05-04 12:47:06 +02:00
Fabien Potencier
ba3785896f Merge remote branch 'schmittjoh/di'
* schmittjoh/di:
  [DependencyInjection] fixes a bug when requesting a definition that uses property injection
2011-05-04 12:05:06 +02:00
Fabien Potencier
b752e31b66 Merge remote branch 'lenar/translation'
* lenar/translation:
  added translation for Estonian
2011-05-04 11:46:05 +02:00
Fabien Potencier
0331501580 [DoctrineBundle] fixed some configuration options 2011-05-04 11:35:14 +02:00
lenar
1cfed9e24e added translation for Estonian 2011-05-04 12:20:22 +03:00
Fabien Potencier
736948887d Merge remote branch 'lenar/doctrinebundle'
* lenar/doctrinebundle:
  fix variable names
2011-05-04 10:55:25 +02:00
Fabien Potencier
f7808de3a8 [DoctrineBundle] moved more DIC definition into orm.xml 2011-05-04 10:53:05 +02:00
lenar
1301995cdc fix variable names 2011-05-04 11:11:38 +03:00
Fabien Potencier
6d334289ee [BrowserKit] fixed a weird behavior where a PHP process returns a successful exit code, but the PHP scripts actually died 2011-05-04 09:08:05 +02:00
Fabien Potencier
17aa0ed0ed changed the default httpOnly value for cookie for better security out of the box 2011-05-04 08:44:59 +02:00
Fabien Potencier
8b83b9847b Merge remote branch 'wtfzdotnet/patch-1'
* wtfzdotnet/patch-1:
  Some changes to the translation of "should" -> "zou moeten", "must" -> "moeten".
2011-05-04 08:05:01 +02:00
Michael Holm
8be22f19d7 First sample of translation. 2011-05-04 01:59:48 +02:00
Johannes Schmitt
2c287676fb [DependencyInjection] fixes a bug when requesting a definition that uses property injection 2011-05-03 23:46:02 +02:00
Fabien Potencier
c7fddca891 replaced some url..code by rawurl..code 2011-05-03 23:06:55 +02:00
wtfzdotnet
898019559a Some changes to the translation of "should" -> "zou moeten", "must" -> "moeten". 2011-05-03 14:06:33 -07:00
Fabien Potencier
e8838e51a6 [DoctrineBundle] fixed previous merge 2011-05-03 16:52:19 +02:00
Fabien Potencier
a02805714f [DoctrineBundle] merged fabpot:doctrine-registry 2011-05-03 16:38:59 +02:00
Daniel Gomes
8870d3f31e Merge remote-tracking branch 'upstream/master' 2011-05-03 14:28:33 +01:00
Daniel Gomes
0147df6b22 added translation for European Portugues (Portugal) 2011-05-03 14:27:37 +01:00
Fabien Potencier
731993869c Merge remote branch 'Seldaek/exception_handling'
* Seldaek/exception_handling:
  [HttpKernel] Log non-http exceptions as critical as well
2011-05-03 14:53:38 +02:00
Fabien Potencier
13bc7c7c53 Merge remote branch 'Seldaek/exception_template'
* Seldaek/exception_template:
  [FrameworkBundle] Adjust styling and display of logs
2011-05-03 14:53:28 +02:00
Fabien Potencier
27d02a7d4a [Routing] fixed regression (/ should not be matched by /{foo} when foo has no default value) 2011-05-03 14:48:08 +02:00
Jordi Boggiano
04f9b23b34 [FrameworkBundle] Adjust styling and display of logs 2011-05-03 14:44:27 +02:00
Jordi Boggiano
0ca4ed33fe [HttpKernel] Log non-http exceptions as critical as well 2011-05-03 14:43:22 +02:00
Johannes Schmitt
12a77440b8 [FrameworkBundle] fixed default 2011-05-03 14:41:50 +02:00
Johannes Schmitt
672c4ef122 Merge remote branch 'origin/master' into annotations
Conflicts:
	UPDATE.md
2011-05-03 14:38:51 +02:00
Johannes Schmitt
d29c7811aa [FrameworkBundle] updated configuration 2011-05-03 14:36:42 +02:00
Fabien Potencier
e9b085ef42 [DoctrineBundle] fixed typo 2011-05-03 14:06:34 +02:00
Fabien Potencier
036be03dff [HttpKernel] fixed a PHP notice 2011-05-03 13:55:00 +02:00
Fabien Potencier
ca4c1355c7 [DoctrineBundle] made doctrine:generate:entities smarter
The doctrine:generate:entities is now able to generate classes
based on a bundle name, a class name, or a namespace.

The command has still some limitations which will be hopefully
be fixed later on.

If also generates the repository class when possible
(replaces the doctrine:generate:repositories command).
2011-05-03 13:39:01 +02:00
Daniel Holmes
807859f962 [FrameworkBundle] added a check in Client to only shutdown the kernel if a previous request has been made 2011-05-03 21:26:45 +10:00
Fabien Potencier
d2a9b23c28 [Routing] fixed routing when a pattern has only one segment which is an optional variable 2011-05-03 08:54:33 +02:00
Fabien Potencier
014b19040c [DoctrineBundle] changed the Registry to return a new instance if the current em is closed
$em = $this->get('doctrine')->getEntityManager();

    $em->getConnection()->beginTransaction(); // suspend auto-commit
    try {
        //... do some work
    } catch (Exception $e) {
        $em->getConnection()->rollback();
        $em->close();

        // get a new EM
        $em = $this->get('doctrine')->getEntityManager();
    }
2011-05-03 07:39:12 +02:00
Fabien Potencier
bd608c8bfa [DoctrineBundle] removed redundant check 2011-05-03 07:38:23 +02:00
Daniel Holmes
34b44a0ff1 [FrameworkBundle] fixed CS 2011-05-03 15:00:01 +10:00
Daniel Holmes
9107ede18c [FrameworkBundle][HttpKernel] added a default tearDown on the WebTestCase which will shut down the currently used kernel (if there is one) in Web functional tests 2011-05-03 14:17:33 +10:00
Kris Wallsmith
4ea274244d [Form] updated listener to check that data is an array 2011-05-02 15:56:35 -07:00
Fabien Potencier
3e514c6eb8 [FrameworkBundle] simplified code 2011-05-02 23:04:24 +02:00
Fabien Potencier
4fd7892b34 [MonologBundle] fixed previous commit 2011-05-02 23:03:13 +02:00
Fabien Potencier
12fb4a0a95 Merge remote branch 'Seldaek/monolog_bundle'
* Seldaek/monolog_bundle:
  [MonologBundle] Added support for new Monolog log level
  [FrameworkBundle] Treat all log messages >=ERR as errors
2011-05-02 22:59:14 +02:00
Fabien Potencier
8746f7b902 Merge remote branch 'Seldaek/exception_logging'
* Seldaek/exception_logging:
  Fixed status code check
  [HttpKernel] Log 500+ errors as critical and not error
2011-05-02 22:58:19 +02:00
Fabien Potencier
f08fc7aae2 Merge remote branch 'Seldaek/loggerinterface'
* Seldaek/loggerinterface:
  [HttpKernel] Removed log() from the LoggerInterface as the priority can not be safely determined across implementations
  [HttpKernel] Prevent errors leaking out in the console on windows
2011-05-02 22:57:38 +02:00
Fabien Potencier
6b5438aa38 [DoctrineBundle] introduced a Registry class
The Registry knows all connections and entity managers declared into a service
container. The Registry is available via the 'doctrine' service.

If can be used to get connections and entity managers by name:

Before:

$em = $this->get('doctrine.orm.entity_manager');
$em = $this->get('doctrine.orm.foobar_entity_manager');

After:

$em = $this->get('doctrine')->getEntityManager();
$em = $this->get('doctrine')->getEntityManager('foobar');

It is better for several reasons:

 * we rely less on naming conventions
 * IDEs will be able to auto-complete methods
2011-05-02 22:28:48 +02:00
Jordi Boggiano
fd08f187c8 Fixed status code check 2011-05-02 21:50:21 +02:00
Jordi Boggiano
e0c12fa080 [HttpKernel] Removed log() from the LoggerInterface as the priority can not be safely determined across implementations 2011-05-02 19:04:49 +02:00
Fabien Potencier
6b74483204 [DoctrineBundle] made the ORM configuration service private (there are accessible via the entity manager anyway) 2011-05-02 18:50:13 +02:00
Jordi Boggiano
838853e58b [HttpKernel] Log 500+ errors as critical and not error
This allows people to filter easily between 404 type of responses (that are mostly for users) and real errors in their application (where they probably want to get an email notification
2011-05-02 18:49:30 +02:00
Fabien Potencier
d0e31b8ca6 changed Application to have nice error messages when something bad happens early on the CLI 2011-05-02 18:35:38 +02:00
Jordi Boggiano
a56ea15363 [MonologBundle] Added support for new Monolog log level 2011-05-02 18:32:17 +02:00
Jordi Boggiano
25d7009c1c [FrameworkBundle] Treat all log messages >=ERR as errors 2011-05-02 18:31:51 +02:00
Fabien Potencier
fc3be8a7cf Merge remote branch 'schniper/patch-1'
* schniper/patch-1:
  Fix Compass class path
2011-05-02 16:20:02 +02:00
Fabien Potencier
8210fb2f0f Merge remote branch 'kriswallsmith/my-email-address'
* kriswallsmith/my-email-address:
  updated my email address
2011-05-02 16:16:11 +02:00
Kris Wallsmith
1cd83c93e0 [AsseticBundle] fixed _controller/ prefix when dumping assets 2011-05-02 06:06:34 -07:00
Kris Wallsmith
562d84a964 updated my email address 2011-05-02 05:59:56 -07:00
Fabien Potencier
a3270da763 [DoctrineBundle] removed unused tag 2011-05-02 13:44:18 +02:00
Costin Bereveanu
cb2c6da346 Fix Compass class path 2011-05-02 02:12:56 -07:00
Fabien Potencier
3286819145 [DoctrineBundle] fixed CS 2011-05-01 23:01:52 +02:00
Matt Drollette
0029cbc397 made esi service public 2011-05-01 14:35:26 -05:00
Fabien Potencier
8b244f4f5e [DoctrineBundle] fixed CS, removed some use statements 2011-05-01 21:30:19 +02:00
Fabien Potencier
aa29affc14 [DoctrineBundle] made some services private 2011-05-01 17:38:34 +02:00
Fabien Potencier
f55237dad7 [FrameworkBundle] fixed typo 2011-05-01 17:38:14 +02:00
Fabien Potencier
0642b60079 Merge remote branch 'lsmith77/serializer'
* lsmith77/serializer:
  make it possible to read the normalizerCache when inheriting
2011-05-01 17:30:53 +02:00
Fabien Potencier
82e1713850 Merge remote branch 'hhamon/console_fix'
* hhamon/console_fix:
  [Console] fixed phpdoc for Command class.
2011-05-01 17:30:24 +02:00
Fabien Potencier
11cdff93f3 [FrameworkBundle] refactored container:debug command
* Use a dumper to serialize the container into the cache (XML)
 * Only keep the "real" services (abstract ones are not displayed anymore)
2011-05-01 17:21:20 +02:00
Fabien Potencier
0b165e13b2 [DependencyInjection] added public attribute when dumping a container to XML 2011-05-01 17:21:19 +02:00
Fabien Potencier
6fec656239 [DependencyInjection] forced anonymous services to always be private 2011-05-01 17:21:18 +02:00
Fabien Potencier
8b0450083a [DependencyInjection] removed unused vars 2011-05-01 17:21:17 +02:00
Fabien Potencier
03f7049c7e [DoctrineBundle] moved Doctrine proxy commands to their own sub-namespace 2011-05-01 12:12:49 +02:00
Fabien Potencier
6edb6447c8 [DoctrineBundle] fixed CS 2011-05-01 10:43:07 +02:00
Fabien Potencier
74a243bdd6 [DoctrineBundle] added connections and entity managers in web profiler 2011-05-01 10:06:10 +02:00
Fabien Potencier
422c7b2794 [WebProfilerBundle] tweaked CSS 2011-05-01 10:05:56 +02:00
Fabien Potencier
bad21f24cb [DoctrineBundle] removed a reference to doctrine.orm.%s_entity_manager 2011-05-01 09:49:50 +02:00
Fabien Potencier
e5bd50e712 Merge remote branch 'kriswallsmith/assetic/sass-imports'
* kriswallsmith/assetic/sass-imports:
  [AsseticBundle] updated sass, scss and compass filter configs to include base dir
2011-05-01 09:26:25 +02:00
Fabien Potencier
a4c6243743 [DoctrineBundle] refactored commands 2011-05-01 09:07:08 +02:00
Kris Wallsmith
ee3c239d12 [AsseticBundle] updated sass, scss and compass filter configs to include base dir 2011-04-30 19:53:02 -07:00
Fabien Potencier
a525a670a3 [DoctrineBundle] made an error message clearer 2011-04-30 22:43:14 +02:00
Hugo Hamon
c6bd284ecd [Console] fixed phpdoc for Command class. 2011-04-30 22:17:30 +02:00
Fabien Potencier
d31c403bae Merge remote branch 'pborreli/tests-fix-typos'
* pborreli/tests-fix-typos:
  Various typos
  [WebProfilerBundle] Fixed typo
  [WebProfilerBundle] Adding unit tests
2011-04-30 21:53:15 +02:00
Pascal Borreli
391744719a Various typos 2011-04-30 19:40:15 +00:00
Fabien Potencier
8b8545895f [DoctrineBundle] fixed auto-mapping
When auto_mapping is true, you can avoid a bundle to be
automatically mapped by setting the value to false:

    auto_mapping: true
    mappings:
        BlogBundle: false

With the above configuration, all bundles will be
auto-mapped, but the BlogBundle won't be.

Bundles that are defined in mappings won't be
managed by the auto-mapping feature:

    auto_mapping: true
    mappings:
        BlogBundle: xml
2011-04-30 21:18:20 +02:00
Pascal Borreli
9960c86db9 [WebProfilerBundle] Fixed typo 2011-04-30 18:54:22 +00:00
Pascal Borreli
11d25f61e8 [WebProfilerBundle] Adding unit tests 2011-04-30 18:42:30 +00:00
Tobias Naumann
ad3fd30365 [DoctrineBundle] fixes undefined index notice 2011-04-30 11:25:47 +02:00
Johannes Schmitt
0d0c737630 Merge remote branch 'origin/master' into annotations
Conflicts:
	UPDATE.md
2011-04-30 10:55:43 +02:00
Johannes Schmitt
8d8f1d7eb6 updated Annotations integration 2011-04-30 10:20:50 +02:00
Fabien Potencier
885d927775 [DoctrineBundle] fixed typo 2011-04-30 08:46:14 +02:00
Fabien Potencier
bb7b7e851d [FrameworkBundle] refactored tests 2011-04-30 07:36:59 +02:00
Fabien Potencier
2adc56d181 Merge remote branch 'danielholmes/request_listener_test'
* danielholmes/request_listener_test:
  [FrameworkBundle] added RequstListener test verifying request context http port fix
2011-04-30 07:26:08 +02:00
Fabien Potencier
158181d34b Merge remote branch 'danielholmes/request_context_routing'
* danielholmes/request_context_routing:
  [Routing] added setContext to RouterInterfaces as it is used on RouterInterface references
2011-04-30 07:26:04 +02:00
Fabien Potencier
55aff78a59 Merge remote branch 'noelg/i18n-translations-dir'
* noelg/i18n-translations-dir:
  [translations] Moved the application translations directory under Resources to be consistent with bundles
2011-04-30 07:24:13 +02:00
Fabien Potencier
b048c44b46 Merge remote branch 'vicb/file-security'
* vicb/file-security:
  [HttpFoundation] Sanitize uploaded file original name
2011-04-30 07:21:47 +02:00
Fabien Potencier
79ac931358 Merge remote branch 'igorw/templating-optional-globals'
* igorw/templating-optional-globals:
  [TwigBundle] Default $globals to null as in FrameworkBundle/PhpEngine
  make Templating Engine $globals optional
2011-04-30 07:20:22 +02:00
Daniel Holmes
625cb11d1e [FrameworkBundle] added RequstListener test verifying request context http port fix 2011-04-30 14:24:26 +10:00
Daniel Holmes
b14db26062 [Routing] added setContext to RouterInterfaces as it is used on RouterInterface references 2011-04-30 13:56:40 +10:00
Lukas Kahwe Smith
3248f02067 make it possible to read the normalizerCache when inheriting
see https://github.com/FriendsOfSymfony/RestBundle/compare/lazy_normalizer_refactoring
2011-04-29 23:51:37 +02:00
Deni
9dfe5bc5a4 [FrameworkBundle] Fixed russian translation of the Choice constraint 2011-04-30 01:20:20 +04:00
Igor Wiedler
aa8428632b [TwigBundle] Default $globals to null as in FrameworkBundle/PhpEngine 2011-04-29 22:53:45 +02:00
Igor Wiedler
e7c0aea587 make Templating Engine $globals optional 2011-04-29 22:36:24 +02:00
Victor Berchet
dccac192d6 [HttpFoundation] Sanitize uploaded file original name 2011-04-29 19:27:53 +02:00
noel guilbert
f644bbc027 [translations] Moved the application translations directory under Resources to be consistent with bundles 2011-04-29 17:48:38 +02:00
Johannes Schmitt
73b92db612 [Routing] updated to changes 2011-04-29 17:44:56 +02:00
Fabien Potencier
f8cc8a7deb [DoctrineBundle] removed unneeded parameter definition 2011-04-29 16:48:19 +02:00
Fabien Potencier
ec8c9eed66 removed the doctrine.orm.class_metadata_factory_name parameter 2011-04-29 16:45:31 +02:00
Fabien Potencier
746ac2d24e [FrameworkBundle] removed the need to specify the http/https port when you don't switch from http to https or the other way round 2011-04-29 16:42:49 +02:00
Fabien Potencier
2eb06bee1e [FrameworkBundle] updated XSD 2011-04-29 16:35:33 +02:00
Fabien Potencier
ff9a7914e6 [WebProfilerBundle] replace url by path for WDT 2011-04-29 16:35:13 +02:00
Fabien Potencier
01695bc654 [DoctrineBundle] refactored event listeners/subscribers to not rely on parameter name conventions
* Doctrine event subscribers now all use the same "doctrine.event_subscriber" tag. To specify a connection,
   use the "connection" attribute.

 * Doctrine event listeners now all use the same "doctrine.event_listener" tag. To specify a connection,
   use the "connection" attribute.
2011-04-29 16:09:26 +02:00
Fabien Potencier
a607afb8d2 [DoctrineBundle] added a doctrine.dbal.connections parameter that keeps the list of registered DBAL connections 2011-04-29 16:05:01 +02:00
Fabien Potencier
43e38c3ba4 [DoctrineBundle] changed doctrine.orm.entity_managers parameter to store the names and the ids 2011-04-29 16:04:54 +02:00
Johannes Schmitt
7e26575bbd [FrameworkBundle] added framework-wide annotation reader, updated validator tests 2011-04-29 15:54:44 +02:00
Fabien Potencier
a2a8edbabd [Twig] made a small tweak in generated templates 2011-04-29 15:26:56 +02:00
Fabien Potencier
c631061955 Merge remote branch 'kertz/typo_fix'
* kertz/typo_fix:
  fixed a typo
2011-04-29 11:06:45 +02:00
Fabien Potencier
72a5ba78a0 Merge remote branch 'xmontana/master'
* xmontana/master:
  renamed catalan translation filename according to locale
  renamed catalan translation filename according to locale
2011-04-29 11:06:21 +02:00
Fabien Potencier
a487c5200e Revert "[TwigBundle] removed the extends tags from the table layout (it's not needed anymore)"
This reverts commit 66a01855f7.
2011-04-29 11:03:45 +02:00
Fabien Potencier
6180b6aeb5 [TwigBundle] removed obsolete code 2011-04-29 10:48:20 +02:00
Fabien Potencier
66a01855f7 [TwigBundle] removed the extends tags from the table layout (it's not needed anymore) 2011-04-29 10:25:01 +02:00
Johannes Schmitt
32ddfc322a [WebProfilerBundle] fixed controllers 2011-04-29 09:46:14 +02:00
Johannes Schmitt
7938fb3c28 Merge remote branch 'schmittjoh/annotations' into annotations 2011-04-29 08:39:00 +02:00
Fabien Potencier
3a36c08d8e added the possibility to easily customize the template of just one widget of a form (PHP edition) 2011-04-29 07:33:55 +02:00
Fabien Potencier
a204aec08b added the possibility to easily customize the template of just one widget of a form 2011-04-29 00:20:21 +02:00
Johannes Schmitt
8ef0fc4976 fixed unit tests 2011-04-28 23:26:27 +02:00
Johannes Schmitt
d151d2d4b8 added Annotations library 2011-04-28 23:09:08 +02:00
Xmontana
277bfb28b0 renamed catalan translation filename according to locale 2011-04-28 21:00:29 +02:00
chispita
cea05575a2 renamed catalan translation filename according to locale 2011-04-28 20:57:06 +02:00
Amal Raghav
26bfa43bfc fixed a typo 2011-04-28 23:37:40 +05:30
Eriksen Costa
12968f144c [Locale] updated ICU data, changes to note:
- The Indian Rupee sign was updated, few fonts supports it: http://en.wikipedia.org/wiki/Indian_rupee_sign
 - Updated LocaleTypeTest, zh_Hans_MO was removed from ICU
2011-04-28 11:57:55 -03:00
Fabien Potencier
4cbc33a785 removed the automatic loading of the compiled classes (should be done explicitely by the end user now) 2011-04-28 14:19:10 +02:00
Fabien Potencier
3fe385e4fb removed the autoloader map feature
This feature added complexity to the framework but wasn't used in the core anyway.
You can still use the Map class loader  in your application though. But most of the time, using the APC
autoloader is just better.
2011-04-28 13:38:22 +02:00
Fabien Potencier
509f3dd454 removed the possibility to pass a template to render_widget()
This has been removed as the same can be achieved in a cleaner way:

 * Use plain HTML with calls to more granular Twig form functions
 * Create a macro if you really want to reuse the template snippet elsewhere
2011-04-28 12:19:29 +02:00
Fabien Potencier
9f11ab4177 Merge remote branch 'noelg/session-storage-bug'
* noelg/session-storage-bug:
  Fixed a bug when the storage service is initialized later by another bundle. In this case, we can't add the storage class to the compiled class as the service does not exists.
2011-04-28 11:40:09 +02:00
Fabien Potencier
05f1481c6a [Form] added the possibility to configure the CSRF field name and the disabling of the CSRF feature altogether 2011-04-28 11:28:44 +02:00
noel guilbert
6f1df3338d Fixed a bug when the storage service is initialized later by another bundle.
In this case, we can't add the storage class to the compiled class as the
service does not exists.
2011-04-28 11:27:56 +02:00
Fabien Potencier
2e9278993c added Definition::getArgument() (very useful when unit testing a Container) 2011-04-28 11:26:10 +02:00
Fabien Potencier
e72f1a9873 added a global secret setting to configure CSRF, the temporary storage, and possibly more 2011-04-28 10:49:59 +02:00
Fabien Potencier
1bc8071d4e [DoctrineBundle] simplified code 2011-04-28 09:19:59 +02:00
Fabien Potencier
77f9daf374 [HttpKernel] allowed bundle names to have 'bundle' in their base name 2011-04-28 08:55:43 +02:00
Fabien Potencier
40d256e058 Merge remote branch 'kriswallsmith/kernel/bundle-extension'
* kriswallsmith/kernel/bundle-extension:
  [HttpKernel] added check of default extension alias convention
  [AsseticBundle] coding standard and comment tweaks
  [HttpKernel] added BundleInterface::getContainerExtension() which is implicitly loaded
2011-04-28 08:48:57 +02:00
Fabien Potencier
4fb1035578 fixed Doctrine EntityType when the identifier is a string 2011-04-28 08:39:14 +02:00
Fabien Potencier
751eaab326 Merge remote branch 'mweimerskirch/form_fixes'
* mweimerskirch/form_fixes:
  Fix DateTimeType by adding missing default options
2011-04-28 08:18:28 +02:00
Fabien Potencier
f865a79742 [Form] fixed DateTimeToTimestampTransformer to use the proper exception class 2011-04-28 08:07:19 +02:00
Fabien Potencier
0007702321 Merge remote branch 'Seldaek/datetime'
* Seldaek/datetime:
  [Form] Use proper transformation exception in case of failure
2011-04-28 08:05:08 +02:00
Fabien Potencier
9e23189eb1 Merge remote branch 'Brouznouf/patch-2'
* Brouznouf/patch-2:
  [Serializer] [XmlEncoder] Add unit test for decoding / encoding root with attributes
  [Seriliazer] [XmlEncoder] Optimize conditions
  [Serializer] [XmlEncoder] Allow decoder to extract attributes in root element
2011-04-28 07:49:55 +02:00
Stepan Tanasiychuk
411997dc59 fix wrong method name 2011-04-27 23:15:27 +03:00
Fabien Potencier
25ae70eb75 [DoctrineBundle] fixed regression 2011-04-27 21:36:23 +02:00
Fabien Potencier
289d35a7ae Merge remote branch 'opensky/form-interface-use-statements'
* opensky/form-interface-use-statements:
  [Form] Remove unnecessary use statements in EventListeners
2011-04-27 18:23:04 +02:00
Jeremy Mikola
f59423626a [Form] Remove unnecessary use statements in EventListeners 2011-04-27 12:18:45 -04:00
Fabien Potencier
5fab450c33 Merge remote branch 'sasezaki/fixed-typo-domcrawler'
* sasezaki/fixed-typo-domcrawler:
  fixed typoe on Exception message
2011-04-27 18:00:49 +02:00
Fabien Potencier
6431881754 [DoctrineBundle] added auto-mapping support in XSD 2011-04-27 17:41:36 +02:00
Fabien Potencier
c846990459 [DoctrineBundle] added the possibility to disable a bundle when using auto_mapping
orm:
    auto_mapping: true
    mappings:
         FOSUserBundle: false
2011-04-27 17:41:36 +02:00
Fabien Potencier
c752429d7c [DoctrineBundle] removed the possibility to use auto_mapping when you have more than one entity manager 2011-04-27 17:41:36 +02:00