Commit Graph

4082 Commits

Author SHA1 Message Date
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
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
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
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
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
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