Commit Graph

4926 Commits

Author SHA1 Message Date
Stepan Tanasiychuk
c6206f8faf Small refact. Without this I get a php Notice and Warnig if try getFlash() after clearing the session:
Notice: Undefined index: _flash in /var/www/test/symfony2/vendors/symfony/src/Symfony/Component/HttpFoundation/Session.php on line 231
Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/test/symfony2/vendors/symfony/src/Symfony/Component/HttpFoundation/Session.php on line 231
2011-05-14 14:23:14 -07:00
Fabien Potencier
9e407d7e91 Merge remote branch 'kriswallsmith/assetic/asset-config'
* kriswallsmith/assetic/asset-config:
  Revert "[AsseticBundle] updated configuration to assume values with integer keys are inputs"
  [AsseticBundle] updated configuration to assume values with integer keys are inputs
  [AsseticBundle] made test of route loader less brittle
  [AsseticBundle] added the ability to define assets outside of the view layer
  [AsseticBundle] injected container into factory for better stability
2011-05-14 22:57:26 +02:00
Amal Raghav
4fa0c4c3ea some cosmetic changes to PdoSessionStorage
aligned line 210
2011-05-14 23:45:13 +05:30
Fabien Potencier
4ef13b6d5c added exceptions when APC is not enabled 2011-05-14 17:43:25 +02:00
Fabien Potencier
fe4515bde3 Merge remote branch 'stloyd/patch-2'
* stloyd/patch-2:
  Throw an exception when APC is not loaded but cache is enabled in app config
2011-05-14 17:38:41 +02:00
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
439f4c34f6 Merge remote branch 'stloyd/patch-5'
* stloyd/patch-5:
  Fix MimeTypeTest
2011-05-14 17:30:00 +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
Joseph Bielawski
25c25ab4b1 Fix MimeTypeTest 2011-05-14 05:21:07 -07: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