Bernhard Schussek
68bb3ff606
[Form] Used ValuePlugin to pass displayed data to template. The order of added renderer plugins and set renderer variables is now respected
2011-02-23 14:11:18 +01:00
Bernhard Schussek
a40e2dd77b
[Form] Deleted obsolete Field classes, ported some more to FormFactory and fixed lots of failing tests
2011-02-23 14:11:18 +01:00
Bernhard Schussek
7492873186
[Form] Fixed a couple of unit tests, refactored PasswordField to FormFactory
2011-02-23 14:11:18 +01:00
Bernhard Schussek
fee0885256
[Form] Moved options from Field and Form to FormFactory. Tests fail now
2011-02-23 14:11:18 +01:00
Bernhard Schussek
ce432e939d
[Form] Changed notion of 'parameter' to 'var' in the renderer. Merged vars and attributes into single array
2011-02-23 14:11:18 +01:00
Bernhard Schussek
2b8ca25d01
[Form] Refactored NumberField, IntegerField, HiddenField and MoneyField to FormFactory
2011-02-23 14:11:18 +01:00
Bernhard Schussek
af8a093b00
[Form] Refactored CountryField, LanguageField, LocaleField and BirthdayField to FormFactory
2011-02-23 14:11:18 +01:00
Bernhard Schussek
9394ffdea1
[Form] Started to refactor TimeField to FormFactory::getTimeField(). Validation logic is still missing.
2011-02-23 14:11:18 +01:00
Bernhard Schussek
975b8ebe9b
[Form] Started to refactor DateField to FormFactory::getDateField(). Validation logic is still missing.
2011-02-23 14:11:18 +01:00
Bernhard Schussek
b148a2a7ed
[Form] Refactored ChoiceField to FormFactory::getChoiceField()
2011-02-23 14:11:18 +01:00
Bernhard Schussek
6edff6b8a9
[Form] Moved submission logic of ChoiceField to preprocessor
2011-02-23 14:11:18 +01:00
Bernhard Schussek
7a48c0a5c5
[Form] Refactored logic from ChoiceField into ChoicePlugin and SelectMultipleNamePlugin
2011-02-23 14:11:18 +01:00
Bernhard Schussek
61ea51d858
[Form] Added first version of FormFactory, ValuePlugin and ParentNamePlugin
2011-02-23 14:11:18 +01:00
Bernhard Schussek
f7dc71ef59
[Form] Refactored id and name generation to renderer plugins
2011-02-23 14:11:17 +01:00
Bernhard Schussek
861ff957e7
[Form] Refactored DateField pattern, fixed maxlength in TextField
2011-02-23 14:11:17 +01:00
Bernhard Schussek
ed68fd66a9
[Form] Improved the renderer implementation, added concepts of plugins and themes
2011-02-23 14:11:17 +01:00
Bernhard Schussek
6cc0a58edc
[Form] Refactored casting logic from IntegerField to IntegerToLocalizedStringTransformer
2011-02-23 14:11:17 +01:00
Bernhard Schussek
27e1e5251c
[Form] Experimentally refactored Twig rendering support to Form component
2011-02-23 14:11:17 +01:00
Bernhard Schussek
ea1ae46c17
[Form] Added CallbackTransformer for dynamic value transformation
2011-02-23 14:11:17 +01:00
Bernhard Schussek
5eb5cc5743
[Form] Refactored date and time field choices into ChoiceList classes
2011-02-23 14:11:17 +01:00
Bernhard Schussek
f39d8b62f2
[Form] Refactored EntityChoiceField::processData() into individual class
2011-02-23 14:11:17 +01:00
Bernhard Schussek
12c131fc24
[Form] Refactored transformation logic of the choice fields into standalone value transformers
2011-02-23 14:11:17 +01:00
Bernhard Schussek
813ec54fa1
[Form] Refactored parts of the choice fields into ChoiceList instances
2011-02-23 14:11:17 +01:00
Bernhard Schussek
404f83ccc3
[Locale] Added stubs as a replacement for the intl extension
...
You can enable the stubs by including the following code in app/autoload.php:
$loader->registerPrefixFallback(array(
__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs',
));
If the intl extension is not loaded, the stub classes for the "en" locale
will be created automatically.
2011-02-23 13:26:05 +01:00
Eriksen Costa
b649843e00
[Locale] added implementation to StubNumberFormatter::getLocale(), matching StubIntlDateFormatter::getLocale()
2011-02-23 13:26:05 +01:00
Eriksen Costa
b58e25cc83
[Locale] added static constructor
2011-02-23 13:26:05 +01:00
Eriksen Costa
69b0e09d6a
[Locale] added stub implementations of Locale and NumberFormatter classes
...
Updated update-data.php script to extract locales, countries names, languages and currencies
from ICU to be used by the stub implementations
2011-02-23 13:26:05 +01:00
Marcin Sikon
491ee20392
[AsseticBundle] fix fatal error - missing argument assetic.asset_manager in definition assetic.asset_manager_cache_warmer serivce
2011-02-23 11:46:32 +01:00
Kris Wallsmith
3fb935de35
[AsseticBundle] removed PHP_CodeSniffer dependency
2011-02-23 00:21:17 -08:00
Fabien Potencier
d2840aaad3
[AsseticBundle] fixed unit tests
2011-02-23 07:19:00 +01:00
Kris Wallsmith
b622e6a9e6
[AsseticBundle] added skip if PHP_CodeSniffer is not installed ( closes #14 )
2011-02-22 21:16:48 -08:00
Jonathan H. Wage
0f353c1411
A command to generate a migration from the sql queries executed when you load some data fixtures.
2011-02-22 20:54:40 -06:00
Matthew Lewinski
4f54aacfc7
[Form] Fix infinite recursion in RadioField->getName()
2011-02-22 20:38:29 -06:00
Kris Wallsmith
d7ea92a0f6
[AsseticBundle] updated for latest assetic development
2011-02-22 16:58:10 -08:00
Fabien Potencier
f54cedfe5e
added LICENSE files for the subtree repositories
2011-02-22 18:58:15 +01:00
Kris Wallsmith
7c794b349d
[HttpKernel] fixed typo
2011-02-22 07:38:03 -08:00
Marcin Sikon
efb561767b
[AsseticBundle] fix AsseticController - removed response service dependency
2011-02-22 16:12:12 +01:00
Fabien Potencier
c63e1ace81
Merge remote branch 'kriswallsmith/assetic-renames'
...
* kriswallsmith/assetic-renames:
[AsseticBundle] renamed some classes
2011-02-22 14:14:09 +01:00
Fabien Potencier
cef86a3771
[HttpKernel] added a way to change the ESI cache strategy
2011-02-22 13:50:26 +01:00
Kris Wallsmith
bd32e3eea8
[AsseticBundle] renamed some classes
2011-02-21 22:18:50 -08:00
Kris Wallsmith
fb005396dc
[HttpKernel] fixed another test where an explicit cache-control header is necessary
2011-02-21 21:53:04 -08:00
Kris Wallsmith
3e131f5b70
[HttpKernel] fixed invalid test
...
According to ResponseHeaderBag::computeCacheControlValue(), a response with an ETag but no explicit Cache-Control header should have a sensible Cache-Control of "private, must-revalidate" set. According to Response::isCacheable(), a response that includes a private Cache-Controls is not considered cacheable. Therefore, in order for this test response to be cacheable and stored, it requires an explicit Cache-Control of public.
2011-02-21 20:09:50 -08:00
Kris Wallsmith
a0bae94f88
[HttpFoundation] updated ResponseHeaderBag to compute Cache-Control whenever any of the headers it considers changes
2011-02-21 19:57:05 -08:00
Fabien Potencier
e8144e473e
[Templating] added getPath() to TemplateReferenceInterface as it's used in the child class in FrameworkBundle
2011-02-21 19:24:27 +01:00
Fabien Potencier
72cdb480ab
[FrameworkBundle] made CachedTemplateLocator fallback to the regular TemplateLocator if the template is not in the cache (to be able to use an absolute template)
2011-02-21 19:23:57 +01:00
Fabien Potencier
fc372bc217
[HttpKernel] changed core.view event to use notifyUntil() instead of filter() -- as soon as a listener returns a Response, we are done
2011-02-21 18:24:55 +01:00
Fabien Potencier
353177d1d6
replaced Response::createRedirect by a new RedirectResponse class
2011-02-21 18:10:53 +01:00
Fabien Potencier
d94acd85f9
remove response as a service
...
The Response is not available in the DIC anymore.
When you need to create a response, create an instance of
Symfony\Component\HttpFoundation\Response instead.
As a side effect, the Controller::createResponse() and Controller::redirect()
methods have been removed and can easily be replaced as follows:
return $this->createResponse('content', 200, array('foo' => 'bar'));
return new Response('content', 200, array('foo' => 'bar'));
return $this->redirect($url);
return Response::createRedirect($url);
2011-02-21 17:36:04 +01:00
Fabien Potencier
bf20238178
fixed a bug in Response content-type auto-detection
...
Without this patch, if you call __toString() on a Response,
the content-type auto-detection would never be trigerred
as __toString() changes the default content-type.
2011-02-21 16:57:25 +01:00
Johannes M. Schmitt
f21578e819
[Security] adds abstract user provider definition
2011-02-21 12:15:29 +01:00