Commit Graph

4162 Commits

Author SHA1 Message Date
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
Fabien Potencier
dc85727b5a [DoctrineBundle] added an auto-mapping option to let Symfony register all enabled bundle mappings
Most of the time, you just want to register all your bundle mappings. It's a bit
tedious to do it by hand, not because of the amount of configuration you need to
type, but mainly because you can easily forget to do so
(also see https://github.com/symfony/symfony/pull/502).

So, setting auto_mapping to true allows Symfony to automatically register the mappings
it founds in the enabled bundles (default is false).

Even if auto_mapping is true, you can still define your mappings to add some more
or to override the defaults.

This change means that the default configuration that works most of the time for
most people is simple:

orm:
  auto_mapping: true
2011-04-27 17:41:36 +02:00
Fabien Potencier
32070f5f68 [DoctrineBundle] fixed service visibility 2011-04-27 17:35:12 +02:00
Joel Wurtz
f11cc2de0b [Seriliazer] [XmlEncoder] Optimize conditions 2011-04-27 08:00:31 -07:00
sasezaki
3d85db8fbc fixed typoe on Exception message 2011-04-27 23:04:13 +09:00
Joel Wurtz
b6a9935314 [Serializer] [XmlEncoder] Allow decoder to extract attributes in root element 2011-04-27 06:34:41 -07:00
Fabien Potencier
71330e91d0 [DoctrineBundle] simplified code 2011-04-27 13:51:22 +02:00
Fabien Potencier
0f5f28c039 Merge remote branch 'Brouznouf/patch-1'
* Brouznouf/patch-1:
  [Serializer] Fix bug when denormalize a class in cache
2011-04-27 13:37:49 +02:00
Fabien Potencier
ffd8c31f3a [DoctrineBundle] reindented some code for clarity 2011-04-27 12:46:25 +02:00
Fabien Potencier
059104a9e7 [DoctrineBundle] added back the possibility to define a single entity manager with a shorter syntax (same reasonning as the previous commit for DBAL) 2011-04-27 12:27:44 +02:00
Fabien Potencier
3f1d969fcd [DoctrineBundle] fixed a unit test 2011-04-27 12:26:54 +02:00
Joel Wurtz
a56e271025 [Serializer] Fix bug when denormalize a class in cache 2011-04-27 03:24:52 -07:00
Fabien Potencier
e63c2e2315 [DoctrineBundle] added back the possibility to easily define one DBAL connection
The reasonning reads as follows:

Most users will only ever use one database connection (and probably one entity manager for that matter).
So, this most common use case should be as easy as possible to configure.

This is BC.

Before:

doctrine:
    dbal:
        default_connection: default
        connections:
            default:
                driver:   pdo_mysql
                dbname:   Symfony2
                user:     root
                password: null

After (optional):

doctrine:
    dbal:
        driver:   pdo_mysql
        dbname:   Symfony2
        user:     root
        password: null
2011-04-27 12:15:22 +02:00
Fabien Potencier
7395069b60 [DoctrineBundle] cleaned up code 2011-04-27 10:50:56 +02:00
Fabien Potencier
03511dea5c [DoctrineBundle] removed the possibility to define an empty configuration for the DBAL (which does not make sense in real-life) 2011-04-27 10:37:08 +02:00
Fabien Potencier
55f9e6fb99 [DoctrineBundle] tweaked various exceptions to make it clear that the issue is related to Doctrine 2011-04-27 10:37:01 +02:00
Fabien Potencier
631393e29d [DoctrineBundle] fixed CS 2011-04-27 10:15:03 +02:00
Fabien Potencier
aab56fa91e [DoctrineBundle] moved some more definition to abstract definition 2011-04-27 10:15:02 +02:00
Fabien Potencier
f1b43450c3 [DoctrineBundle] removed parameters from orm.xml as they already have default values in the Configuration class 2011-04-27 10:14:59 +02:00
Fabien Potencier
35a32440c7 [DoctrineBundle] converted DBAL definition templates to abstract definitions 2011-04-27 09:47:43 +02:00
Victor Berchet
d350e01e33 File & UploadedFile tweaks 2011-04-27 09:10:41 +02:00
Fabien Potencier
00bfd10ca9 [HttpFoundation] refactored File management to be safer 2011-04-27 08:50:33 +02:00
Fabien Potencier
b7cd7115d1 [HttpFoundation] removed protected methods that were not used 2011-04-27 08:04:10 +02:00
Fabien Potencier
5bb9da4b6d [HttpFoundation] renamed getDefaultExtension() to guessExtension()
The renamed method now returns null if it cannot guess the extension. It allows
the developper to know whether the extension has been guessed or not.
2011-04-27 08:03:19 +02:00
Fabien Potencier
a26de5ba58 [HttpFoundation] fixed CS 2011-04-27 08:03:15 +02:00
Fabien Potencier
854fbd7f68 [HttpFoundation] use realpath to ensure that there is no .. in file path (to match phpdoc) 2011-04-27 07:58:54 +02:00
Fabien Potencier
9f846997ef Merge remote branch 'Infranology/normalize-bools'
* Infranology/normalize-bools:
  capitalized 'boolean'
  replaced 'bool' with 'Boolean'
2011-04-27 07:48:12 +02:00
Eriksen Costa
164ce5210d capitalized 'boolean' 2011-04-27 02:35:10 -03:00
Eriksen Costa
4db0752894 replaced 'bool' with 'Boolean' 2011-04-27 02:35:03 -03:00
Fabien Potencier
aa3ec504ae removed File::getWebPath()
This has been removed for several reasons:

* the framework does not know where the document root is and should not care
* as the document root was static, it was impossible to have several document roots depending on some business rules (see next one)
* sometimes, the document root is not under the web root directory (so the logic of getWebPath() is not always correct)
* the feature was not used anywhere in the core
2011-04-27 06:49:05 +02:00
Benoît Merlet
d9ac718b97 fixed typo 2011-04-26 19:54:39 +02:00
Fabien Potencier
28aa8e729a [FrameworkBundle] fixed typo 2011-04-26 18:27:51 +02:00
Kris Wallsmith
5dc1a9bb58 [Process] added optional argument for default executable 2011-04-26 07:45:16 -07:00
Kris Wallsmith
97f66e93ac [HttpKernel] added check of default extension alias convention 2011-04-26 07:17:45 -07:00
Fabien Potencier
4bef9995c6 fixed typo 2011-04-26 16:02:24 +02:00
Jordi Boggiano
d11b7baa7e [Form] Use proper transformation exception in case of failure 2011-04-26 16:02:01 +02:00
Fabien Potencier
f29ddad5ba removed unused file 2011-04-26 15:38:09 +02:00
Fabien Potencier
0ac679e73c Merge remote branch 'markchalloner/master'
* markchalloner/master:
  [Validator] Updated ContraintViolationList ArrayAccess setter to check equivalence to null instead of using is_null
  Implemented ArrayAccess interface
2011-04-26 15:34:47 +02:00
Fabien Potencier
e2741cefc4 [Process] changed ExecutableFinder to return false instead of throwing an exception when the executable is not found
I've made the change as the executable goal is to find the executable. The fact that it does not find it is
part of the contract and it is not exceptional.
2011-04-26 15:18:24 +02:00
Fabien Potencier
f12146d0ec Merge remote branch 'schmittjoh/process'
* schmittjoh/process:
  [Process] use component exception
  [Process][Assetic] refactored some code to allow for better executable defaults
2011-04-26 15:01:29 +02:00
Fabien Potencier
e45d5fa857 merged vicb:template-factorization 2011-04-26 14:38:47 +02:00
Fabien Potencier
fe03671c2c Merge remote branch 'vicb/cast-array'
* vicb/cast-array:
  Make casting scalar to array consistent
2011-04-26 14:32:53 +02:00
Fabien Potencier
fc2c1578ac Merge remote branch 'kriswallsmith/assetic/twig-functions'
* kriswallsmith/assetic/twig-functions:
  [AsseticBundle] added a listener to add common image request formats when use_controller is on
  [AsseticBundle] added a node visitor to wrap runtime filter functions with runtime use_controller check
  [AsseticBundle] added support for Twig functions
2011-04-26 14:31:16 +02:00
Fabien Potencier
98e70f0963 [Routing] Route collection prefixes must start with a / and must not end with a / 2011-04-26 14:27:55 +02:00
Michel Weimerskirch
87c609b4a4 Fix DateTimeType by adding missing default options 2011-04-26 14:21:00 +02:00
Fabien Potencier
b80bb9c7ab [DoctrineBundle] removed doctrine.dbal.types parameter 2011-04-26 13:41:07 +02:00
Fabien Potencier
dead820d77 Merge remote branch 'xmontana/master'
* xmontana/master:
  Validator messages: added Catalan translation
2011-04-26 12:39:41 +02:00
Fabien Potencier
175f944f93 [DependencyInjection] added NonExistentParameterException that indicates where a non-existent parameter is being used 2011-04-26 12:36:25 +02:00
Fabien Potencier
e68f8f40b9 [DoctrineBundle] renamed DIC class parameters (they end with .class instead of _class to follow the convention of other bundles) 2011-04-26 12:22:22 +02:00
Victor Berchet
f83e92bf44 Make casting scalar to array consistent 2011-04-26 12:16:35 +02:00
Xmontana
dacfa633f6 Validator messages: added Catalan translation 2011-04-26 11:56:55 +02:00
Fabien Potencier
647efcffda Merge remote branch 'lsmith77/default_false'
* lsmith77/default_false:
  cosmetic tweak (use defaultFalse() instead of defaultValue(false))
2011-04-26 10:02:40 +02:00
Fabien Potencier
fefee0d5e5 [Routing] fixed URL generation when an optional variable value is 0 2011-04-26 09:50:57 +02:00
Lukas Kahwe Smith
dbdf4ad750 cosmetic tweak (use defaultFalse() instead of defaultValue(false)) 2011-04-26 09:50:41 +02:00
Kris Wallsmith
7dfe286897 [AsseticBundle] coding standard and comment tweaks 2011-04-26 00:18:22 -07:00
Kris Wallsmith
f9c300e8db [AsseticBundle] added a listener to add common image request formats when use_controller is on 2011-04-26 00:05:35 -07:00
Fabien Potencier
035afc1f4e [Routing] fixed regression in Routing matching algorithm 2011-04-26 09:01:25 +02:00
Kris Wallsmith
a005796d3b [AsseticBundle] added a node visitor to wrap runtime filter functions with runtime use_controller check 2011-04-25 23:46:01 -07:00
Fabien Potencier
ee89163858 Merge remote branch 'mweimerskirch/validators_translations'
* mweimerskirch/validators_translations:
  [FrameworkBundle] Validator messages: added German translation
  [FrameworkBundle] Validator messages: added Luxembourgish translation
2011-04-26 07:11:29 +02:00
Fabien Potencier
0493b669f7 Merge remote branch 'udat/110425-fixes'
* udat/110425-fixes:
  [Bridge][Twig] removed unused argument passed to setRendered() method
  [Translation] removed unnecessary default parameter value
  [Templating] removed unused argument passed to setRendered() method
  [HttpKernel] removed unused argument passed to ClosureLoader constructor
  [BrowserKit] fixed typo
  [Routing] removed redundant parameter in addRoute method
2011-04-26 07:11:07 +02:00
Kris Wallsmith
7a7b448680 [HttpKernel] added BundleInterface::getContainerExtension() which is implicitly loaded 2011-04-25 21:12:35 -07:00
Michel Weimerskirch
246ad1b03f [FrameworkBundle] Validator messages: added German translation 2011-04-25 23:14:50 +02:00
Michel Weimerskirch
45dd5f33ed [FrameworkBundle] Validator messages: added Luxembourgish translation 2011-04-25 23:13:04 +02:00
Artur Kotyrba
d506a55b40 [Bridge][Twig] removed unused argument passed to setRendered() method 2011-04-25 22:58:23 +02:00
Artur Kotyrba
88e78e6f44 [Translation] removed unnecessary default parameter value 2011-04-25 22:58:23 +02:00
Artur Kotyrba
05698f66a2 [Templating] removed unused argument passed to setRendered() method 2011-04-25 22:58:23 +02:00
Artur Kotyrba
f9f02a9047 [HttpKernel] removed unused argument passed to ClosureLoader constructor 2011-04-25 22:58:23 +02:00
Artur Kotyrba
533e2d994b [BrowserKit] fixed typo 2011-04-25 22:58:23 +02:00
Artur Kotyrba
713e8c26a6 [Routing] removed redundant parameter in addRoute method 2011-04-25 22:58:23 +02:00
Francis Besset
291c35cd45 [FrameworkBundle] Fixed french validators messages 2011-04-25 21:19:11 +02:00
Fabien Potencier
3ab5a51e17 Merge remote branch 'Seldaek/monolog_firephp'
* Seldaek/monolog_firephp:
  [MonologBundle] Added FirePHPHandler support
  [MonologBundle] Only compile files if any handler is registered
2011-04-25 20:55:50 +02:00
Fabien Potencier
7dd64e4c21 Merge remote branch 'kriswallsmith/assetic/compass'
* kriswallsmith/assetic/compass:
  [AsseticBundle] added configuration for compass filter
2011-04-25 20:54:21 +02:00
Fabien Potencier
d6bdb7af88 Merge remote branch 'vicb/tweaks_110425'
* vicb/tweaks_110425:
  [AsseticBundle] Remove an unused property
  [Cache warmers] A few tweaks
2011-04-25 20:54:08 +02:00
Fabien Potencier
a91279fbaa Merge remote branch 'Infranology/cs-typo-fixes'
* Infranology/cs-typo-fixes:
  fixed typos and CS
2011-04-25 20:53:18 +02:00
Jordi Boggiano
f4d1196666 [MonologBundle] Added FirePHPHandler support 2011-04-25 17:48:23 +02:00
Jordi Boggiano
3bca4b73e5 [MonologBundle] Only compile files if any handler is registered 2011-04-25 17:47:51 +02:00
Fabien Potencier
944a98086e [Routing] optimized PHP route dumper 2011-04-25 17:45:59 +02:00
Kris Wallsmith
f3728744b4 [AsseticBundle] added support for Twig functions 2011-04-25 08:37:07 -07:00
Kris Wallsmith
d948361ed6 [AsseticBundle] added configuration for compass filter 2011-04-25 07:39:07 -07:00
Fabien Potencier
7c95bda751 [Routing] simplified route compiler 2011-04-25 12:38:20 +02:00
Victor Berchet
4de2b84923 [AsseticBundle] Remove an unused property 2011-04-25 11:57:46 +02:00
Victor Berchet
829bc54392 [Cache warmers] A few tweaks 2011-04-25 11:57:41 +02:00
Eriksen Costa
888eaf1b2f fixed typos and CS 2011-04-25 02:17:15 -03:00
Fabien Potencier
59c6609aec Merge remote branch 'vicb/service-event'
* vicb/service-event:
  [FrameworkBundle] Optimization of the method ContainerAwareEventDispacther::dispatch()
  [FrameworkBundle] Fix an issue with ContainerAwareEventDispatcher when re-entering a scope
2011-04-24 22:06:56 +02:00
Fabien Potencier
889c422d6e Merge remote branch 'igorw/ipv6'
* igorw/ipv6:
  [HttpFoundation] minor optimization
  minor adjustments suggested by vicb
  [HttpFoundation] IPv6 support for RequestMatcher
  [HttpFoundation] refactor RequestMatcherTest to use dataProvider
  [Validator] use full iPv6 regex
  [Validator] add IPv6 support to UrlValidator
  [HttpFoundation] add IPv6 support to Request
  [HttpFoundation] test Request::create with an IP as host name
  [HttpFoundation] refactor Request::getClientIp test
2011-04-24 22:04:25 +02:00
Fabien Potencier
36a63be0a5 Merge remote branch 'dustinwhittle/master'
* dustinwhittle/master:
  [Classloader] Added phpdoc with example usage + refactored unit tests fixtures
  [Classloader] Refactored ApcUniversalClassLoader to use setUp() to detect APC
  [Classloader] Fixed typo + coding standards in ApcUniversalClassLoader test
  [Classloader] Fixed APC class loader + added unit tests
2011-04-24 22:02:59 +02:00
Fabien Potencier
c0a160b5f9 partially reverted previous merge 2011-04-24 22:02:19 +02:00
Fabien Potencier
c6e0ccfdcd Merge remote branch 'pborreli/form-typo'
* pborreli/form-typo:
  [Form] Fixed typos
2011-04-24 21:56:47 +02:00
Fabien Potencier
f251eab92f Revert "[Form] added a way to register a Form extension after creation of the FormFactory"
This reverts commit 2b8c7f84b5.
2011-04-24 21:56:06 +02:00
Fabien Potencier
2f3ddb88ef Merge remote branch 'bschussek/form'
* bschussek/form:
  [Form] Automatically setting "data_class" option if objects are passed at the creation of a form
  [Form] Improved the way passed data is handled in FormFactory
  [Form] Simplified FileType code
  [HttpFoundation] TemporaryStorage automatically creates the directory if it doesn't exist yet
  [Form] Changed FormBuilder::build() to FormBuilder::create(). You hvae to pass the resulting builder to FormBuilder::add() manually now
  [Form] Added FieldTypeValidatorExtension and fixed FQCN of DelegatingValidator
2011-04-24 21:53:24 +02:00
Pascal Borreli
06b3c386d9 [Form] Fixed typos 2011-04-24 14:05:16 +00:00
Dustin Whittle
e8bb64c17c [Classloader] Added phpdoc with example usage + refactored unit tests fixtures 2011-04-24 07:00:27 -07:00
Dustin Whittle
dbb5ca459d [Classloader] Fixed APC class loader + added unit tests 2011-04-24 07:00:26 -07:00
Fabien Potencier
08bf2af455 fixed email 2011-04-24 13:59:46 +02:00
Bernhard Schussek
e790587dc2 [Form] Automatically setting "data_class" option if objects are passed at the creation of a form
$form = $this->get('form.factory')->create(new PostType(), $post);
2011-04-24 13:38:12 +02:00
Bernhard Schussek
d58c610833 [Form] Improved the way passed data is handled in FormFactory 2011-04-24 13:32:29 +02:00
Fabien Potencier
4ed8d4f6b5 [Routing] fixed URL generation when a non-optional variable is empty 2011-04-24 13:06:02 +02:00
Bernhard Schussek
335f7e776a [Form] Simplified FileType code 2011-04-24 12:08:56 +02:00
Bernhard Schussek
19073ae655 [HttpFoundation] TemporaryStorage automatically creates the directory if it doesn't exist yet 2011-04-24 12:08:56 +02:00
Bernhard Schussek
675e5ded9e [Form] Changed FormBuilder::build() to FormBuilder::create(). You hvae to pass the resulting builder to FormBuilder::add() manually now
$builder->add(
    $builder->create('child', 'form')
        ->add('foo', 'text')
        ->add('bar', 'text')
);
2011-04-24 12:08:50 +02:00
Bernhard Schussek
4f2fee8190 Merge remote branch 'tna/form-validation' into form 2011-04-24 10:43:15 +02:00
Fabien Potencier
8eb1dfc6a0 [Translation] forced translated id to strings 2011-04-24 09:42:41 +02:00
Fabien Potencier
b906cb59b8 Merge remote branch 'lsmith77/getAllPrevious'
* lsmith77/getAllPrevious:
  renamed getPreviouses() to getAllPrevious
2011-04-24 08:46:54 +02:00
Fabien Potencier
823be5d956 Merge remote branch 'ornicar/fixDelegatingValidatorNamespace'
* ornicar/fixDelegatingValidatorNamespace:
  [Form] Fix DelegatingValidator namespace
2011-04-24 08:45:50 +02:00
Fabien Potencier
27ae0a341d Merge remote branch 'weaverryan/form_tweaks'
* weaverryan/form_tweaks:
  [Form] Removing an unused variable in TimeType
  [Form] Throwing exception for invalid "input" type of DateType
  [Form] Removing unused private property and adding PHPDoc
  [Form] Fixing wrong variable name
  [Form] Tweak to FileTypeTest to avoid warning
  [Form] Adding an exception for an invalid widget option in DateType
2011-04-24 08:45:44 +02:00
Fabien Potencier
7d8a3f76bb [HttpKernel] made some minor tweaks 2011-04-24 08:44:29 +02:00
ornicar
b5055bb4fd [Form] Fix DelegatingValidator namespace 2011-04-23 23:20:56 -07:00
Ryan Weaver
181ef3cc08 [Form] Removing an unused variable in TimeType 2011-04-23 20:52:26 -05:00
Ryan Weaver
af8aad9c34 [Form] Throwing exception for invalid "input" type of DateType
Also fixed typo in test of previous commit
2011-04-23 20:36:40 -05:00
Ryan Weaver
f435ed7e7e [Form] Removing unused private property and adding PHPDoc 2011-04-23 20:14:12 -05:00
Ryan Weaver
0681e443d5 [Form] Fixing wrong variable name 2011-04-23 20:08:24 -05:00
Ryan Weaver
78b2062c5e [Form] Adding an exception for an invalid widget option in DateType 2011-04-23 19:42:40 -05:00
Lukas Kahwe Smith
fd97c0caca renamed getPreviouses() to getAllPrevious 2011-04-24 01:08:15 +02:00
Tobias Naumann
bc9817c85e [Form] Added FieldTypeValidatorExtension and fixed FQCN of DelegatingValidator 2011-04-24 01:05:12 +02:00
Fabien Potencier
278223d950 Merge remote branch 'pborreli/phpdoc-fix'
* pborreli/phpdoc-fix:
  [Phpdoc] Cleaning/fixing
  [FrameworkBundle] Fixed typo in css
2011-04-23 21:50:16 +02:00
Fabien Potencier
8b74c6eb9c [DomCrawler] refactored URLs management in Link and Form 2011-04-23 21:45:44 +02:00
Pascal Borreli
8c0beea677 [Phpdoc] Cleaning/fixing 2011-04-23 15:18:47 +00:00
Pascal Borreli
b90aba14e6 [FrameworkBundle] Fixed typo in css 2011-04-23 15:17:39 +00:00
Fabien Potencier
5591f34c01 [FrameworkBundle] made some small tweaks 2011-04-23 15:40:32 +02:00
Fabien Potencier
f05801cace [FrameworkBundle] removed the router.options.resource_type and routing.resource arguments 2011-04-23 15:31:13 +02:00
Fabien Potencier
8db6c28432 removed obsolete config parameter 2011-04-23 15:19:33 +02:00
Fabien Potencier
50d3c92e22 tweaked TemporaryStorage directory creation 2011-04-23 15:19:30 +02:00
Fabien Potencier
8cc5caf1f3 changed the default directory for the upload temp dir, made the dir mandatory 2011-04-23 15:09:55 +02:00
Fabien Potencier
02c66e658c removed the nestingLevel configuration for file temporary storages 2011-04-23 15:06:07 +02:00
Fabien Potencier
800effcccd Merge remote branch 'lsmith77/remove_interface_injection'
* lsmith77/remove_interface_injection:
  removed support for interface injection as well as all relevant tests
2011-04-23 12:08:49 +02:00
Fabien Potencier
9bffd8c2db [FrameworkBundle] moved some default values to the Configuration class 2011-04-23 12:07:14 +02:00
Fabien Potencier
e7892071bb [FrameworkBundle] fixed wrong usage of obsolete session.class parameter 2011-04-23 11:43:35 +02:00
Lukas Kahwe Smith
d9491a743e removed support for interface injection as well as all relevant tests 2011-04-23 11:42:31 +02:00
Fabien Potencier
3ed0ff7b03 [FrameworkBundle] removed two parameters 2011-04-23 11:34:17 +02:00
Victor Berchet
209b95f232 [FrameworkBundle] Add a unit test for the TemplateFinder class 2011-04-23 11:24:28 +02:00
Victor Berchet
33dd89fd02 [Template cache warmers] Factorize common code 2011-04-23 11:24:28 +02:00
Victor Berchet
5308a5c4f5 [WebProfilerBundle] Remove useless use clause 2011-04-23 11:24:28 +02:00
Fabien Potencier
b347aebee8 [TwigBundle] removed obsolete code 2011-04-23 11:00:54 +02:00
Fabien Potencier
55e6883a88 [TwigBundle] removed obsolete code 2011-04-23 10:55:52 +02:00
Fabien Potencier
2b8c7f84b5 [Form] added a way to register a Form extension after creation of the FormFactory 2011-04-23 09:28:29 +02:00
Fabien Potencier
b69c5956d3 [Form] added missing use statement 2011-04-23 09:27:47 +02:00
Fabien Potencier
9a4da005a2 Merge remote branch 'bschussek/form-extensions'
* bschussek/form-extensions:
  [Form] Refactored code from CoreExtension to new ValidatorExtension
  [Form] Added FormTypeExtensionInterface
  [Form] Reorganized code into "form extensions"
2011-04-23 09:11:25 +02:00
Fabien Potencier
960ae878b0 Merge remote branch 'pborreli/fix-twibundle'
* pborreli/fix-twibundle:
  [TwigBundle] Removed useless code
2011-04-23 09:07:27 +02:00
Fabien Potencier
07933ddfd4 Merge remote branch 'pborreli/fix-typo'
* pborreli/fix-typo:
  Fixed various typo
2011-04-23 09:07:23 +02:00
Pascal Borreli
b5769c52d6 Fixed various typo 2011-04-22 23:12:50 +00:00
Pascal Borreli
325801b00a [TwigBundle] Removed useless code 2011-04-22 22:54:11 +00:00
Pascal Borreli
c4623fc2c0 [FrameworkBundle][Windows] Fixed testValidationPaths on windows 2011-04-22 20:49:09 +00:00
Igor Wiedler
041a2e9d83 [HttpFoundation] minor optimization 2011-04-22 22:20:12 +02:00
Bernhard Schussek
6f1bc356a8 [Form] Refactored code from CoreExtension to new ValidatorExtension
CoreExtension is now independent of the Symfony2 validator.
2011-04-22 19:38:21 +02:00
Bernhard Schussek
1ce2db87e2 [Form] Added FormTypeExtensionInterface
With implementations of this interface, existing types can be amended.
The Csrf extension, for example, now contains a class FormTypeCsrfExtension
that adds CSRF capabilities to the "form" type.

To register new type extensions in the DIC, tag them with "form.type_extension"
and the name of the extended type as alias.
2011-04-22 19:24:38 +02:00
Igor Wiedler
51d12758a0 minor adjustments suggested by vicb 2011-04-22 18:37:20 +02:00
Bernhard Schussek
54e66c518f [Form] Reorganized code into "form extensions"
The extension classes are now the only constructor argument of the FormFactory class. They replace the existing "type loader" classes.

    new FormFactory(array(
        new CoreExtension($validator, $storage),
        new CsrfExtension($csrfProvider),
        new DoctrineOrmExtension($em),
    ));

Together with a few upcoming commits this mechanism will make

 * extension of the form framework in bundles and
 * usage of the forms outside of Symfony2

much easier.
2011-04-22 17:41:21 +02:00
Igor Wiedler
9ae5023a70 [HttpFoundation] IPv6 support for RequestMatcher 2011-04-22 17:37:22 +02:00
Igor Wiedler
e5b923a0ec [Validator] use full iPv6 regex
it was taken from:
https://github.com/strattg/ipv6-address-test/blob/master/Tests/Rfc3986RegexTest.php
2011-04-22 17:07:44 +02:00
Igor Wiedler
afcdbf8b79 [Validator] add IPv6 support to UrlValidator 2011-04-22 17:07:44 +02:00
Igor Wiedler
82699c5a98 [HttpFoundation] add IPv6 support to Request 2011-04-22 17:07:44 +02:00
Fabien Potencier
417839345f Merge remote branch 'lsmith77/request_format_tweaks'
* lsmith77/request_format_tweaks:
  added text/html to default format mapping
  return "q" from splitHttpAcceptHeader() to enable more complex accept header negotiations
  added support for setting a custom default format in Request::getRequestFormat()
2011-04-22 15:33:01 +02:00
Fabien Potencier
fd05f02b23 [HttpFoundation] added logic to automatically add the charset when not present in the Content-Type for relevant Content-Types 2011-04-22 15:26:38 +02:00
Fabien Potencier
7644e86683 refactored session configuration
* made the options array only for "global" options that are valid for all session storages
 * changed the PDO session storage constructor signature to accept an array of options for DB configuration
 * changed the storage_id to be the full service id, instead of just part of it
 * removed the class parameter for session as it can be changed via the .class parameter (it was the only example in the framework)
 * removed the configuration for the PDO session storage for now
2011-04-22 13:34:57 +02:00
Fabien Potencier
f1e14f5ad3 Merge remote branch 'vicb/profiler'
* vicb/profiler:
  [WebProfilerBundle] Sort tables by key name
2011-04-22 13:34:30 +02:00
Victor Berchet
a79a94b928 [WebProfilerBundle] Sort tables by key name 2011-04-22 12:51:58 +02:00
Fabien Potencier
5c2c16f57e moved DoctrineMigrationsBundle to its own repository (https://github.com/symfony/DoctrineMigrationsBundle) 2011-04-22 12:11:08 +02:00
Fabien Potencier
0632327b77 removed data fixtures from core (moved to https://github.com/symfony/DoctrineFixturesBundle) 2011-04-22 11:47:16 +02:00
Bernhard Schussek
a97366fbcb [Form] Split signature of FormFactory::create() into create() and createNamed()
The data can now be passed to all creation methods:

    $form = $factory->create('form', $data);

By default, a form will receive the name of its type ("form" in above example). If you wish to pass a custom name, use createNamed():

    $form = $factory->createNamed('form', 'myform', $data);
2011-04-22 10:42:21 +02:00
Fabien Potencier
0069a70e42 Merge branch 'form'
* form: (291 commits)
  [FrameworkBundle] updated method call
  [Form] Removing excess option in the TimezoneType
  [FrameworkBundle] Adding check for invalid form type for better exception message
  [TwigBundle] Removing dbug text in form template
  [Form] Removed obsolete code in TextType
  [Form] fixed translations escaping
  [Form] Adding a check that the choice_list option on the ChoiceType implements the ChoiceListInterface.
  [Form] added support for groups in form validation (when using array data)
  [Form] fixed error bubbling for choices when expanded is true
  [Form] added a unit test
  [Form] Removed obsolete view variables
  [Form] Renamed ChoiceUtil to FormUtil and gave its methods more general names
  [Form] Changed separator for Twig blocks from double underscore to single underscore to match the PHP template separator
  [Form] Removed StripTagsListenerTest
  [Form] Removed StripTagsListener. Its implementation is insufficient and needs to be replaced by a better one.
  [Form] added a way to specify the form constraint when building the form (useful if you work with arrays instead of objects)
  [Form] Added test for 'email' type and fixed a few bugs
  [Form] Removed obsolete constraints from validation.xml
  Revert "[Form] removed validation.xml file (not used anymore)"
  Added html5 email input to the forms
  ...
2011-04-22 09:36:52 +02:00
Fabien Potencier
de8f10e236 Merge remote branch 'Infranology/framework-bundle-updated-method-call' into form
* Infranology/framework-bundle-updated-method-call: (91 commits)
  [FrameworkBundle] updated method call
  moved DoctrineMongoDBBundle to its own repository
  [AsseticBundle] fixed unit tests
  [FrameworkBundle] removed unneeded files in tests
  updated vendors
  [FrameworkBundle] removed the need to boot a Kernel in a unit test file
  [FrameworkBundle] removed the need to boot a Kernel in a unit test file
  [Routing] added getContext() accessor
  [HttpFoundation] fixed a potential security problem in Request
  updated vendors
  Added 201 to the possible status codes that indicate a response is a redirect.
  [FrameworkBundle] made ESI URL relative as allowed by the spec (no need to generate absolute URLs)
  [AsseticBundle] fixed router and controller
  [AsseticBundle] removed fake front controller from URL before creating route
  [AsseticBundle] updated twig integration to check debug mode at runtime rather than compile time since twig cannot vary its cache by debug mode
  [Routing] the global parameters must not be added in the QS when generating URLs
  removed the possibility to pass a message to the trans tag
  simplified exceptions as Twig is now smart enough to automatically add line information
  made the %count% variable automatically available when using the transchoice filter (similar to how the tag works)
  [Container] Added function array_unique on getServiceIds to return only one service name
  ...
2011-04-22 09:35:11 +02:00
Fabien Potencier
f626afcdef Merge remote branch 'weaverryan/validator_choice_message_changes'
* weaverryan/validator_choice_message_changes:
  [Validator] Modifying Choice message and adding a different multiple message
2011-04-22 08:40:08 +02:00
Fabien Potencier
2c939e4124 Merge remote branch 'kriswallsmith/assetic/controller-fix'
* kriswallsmith/assetic/controller-fix:
  [AsseticBundle] fixed controller
2011-04-22 08:40:01 +02:00
Fabien Potencier
82f1461031 Merge remote branch 'weaverryan/form_remove_extra_timezone_options' into form
* weaverryan/form_remove_extra_timezone_options:
  [Form] Removing excess option in the TimezoneType
2011-04-22 08:38:35 +02:00
Fabien Potencier
4f4979c84a Merge remote branch 'weaverryan/form_container_aware_type_loader_check' into form
* weaverryan/form_container_aware_type_loader_check:
  [FrameworkBundle] Adding check for invalid form type for better exception message
2011-04-22 08:37:33 +02:00
Eriksen Costa
9cf7fba913 Merge branch 'master' into fix-stub-locale-method-signature 2011-04-22 00:07:29 -03:00
Eriksen Costa
7bbb8beb17 [FrameworkBundle] updated method call 2011-04-21 23:20:52 -03:00
Eriksen Costa
589b0ab4ed Merge branch 'master' into form-frameworkbundle-form-guessers-fix
Conflicts:
	src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddFormGuessersPass.php
	src/Symfony/Component/Form/MoneyField.php
2011-04-21 23:03:40 -03:00
Ryan Weaver
1856601524 [Validator] Modifying Choice message and adding a different multiple message 2011-04-21 20:05:13 -05:00
Ryan Weaver
df50e2b161 [Form] Removing excess option in the TimezoneType 2011-04-21 19:57:53 -05:00
Ryan Weaver
fb4eb9c2e9 [FrameworkBundle] Adding check for invalid form type for better exception message 2011-04-21 19:51:10 -05:00
Ryan Weaver
f98916dcc8 [TwigBundle] Removing dbug text in form template 2011-04-21 19:49:45 -05:00
Kris Wallsmith
b69ed7f766 [AsseticBundle] fixed controller 2011-04-21 15:01:24 -07:00
Fabien Potencier
e6d86eb9f7 moved DoctrineMongoDBBundle to its own repository
The repo is now here: https://github.com/symfony/DoctrineMongoDBBundle

It has been done as the bundle depends on Doctrine Common 2.1, but everything
else in Symfony relies on Doctrine Common 2.0.
2011-04-21 23:14:21 +02:00
Fabien Potencier
fc23f39335 [AsseticBundle] fixed unit tests 2011-04-21 22:50:25 +02:00