Commit Graph

4346 Commits

Author SHA1 Message Date
Fabien Potencier 2291af41c5 added Locale stubs to the autoloader so that people can run Symfony unit tests even if they don't have intl installed 2011-04-28 10:08:16 +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 7d024125d3 [Form] fixed unit tests 2011-04-28 08:11:14 +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
Pascal Borreli 47948c8d2b [Form] Fixed bug creating empty "1" directory in root 2011-04-28 01:06:38 +00:00
Brouznouf 5712b3bd0e [Serializer] [XmlEncoder] Add unit test for decoding / encoding root with attributes 2011-04-27 22:16:24 +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 b5e1e2cd39 Merge remote branch 'kriswallsmith/update-tweak'
* kriswallsmith/update-tweak:
  added note about document_root removal
2011-04-27 18:00:29 +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
Kris Wallsmith abb61f48de added note about document_root removal 2011-04-27 07:08:50 -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 e96b39f060 updated UPDATE file 2011-04-27 08:56:11 +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