Commit Graph

99 Commits

Author SHA1 Message Date
Fabien Potencier
c5223bbcd1 merged branch vicb/file (PR #1317)
Commits
-------

9d6357c [HttpFoundation] Document the changes to the File classes
136b80a [HttFoundation] Add File::getExtension() as \SplFileInfo::getExtension() was introduced in PHP 5.3.6
38b3b74 [HttpKernel] Fix and test previous commit
ac0c00c [HttpFoundation] Make File extends \SplFileInfo

Discussion
----------

[HttpFoundation] Make File extends \SplFileInfo

This is a rebased version of [PR 674](https://github.com/symfony/symfony/pull/674).

  * File: The API has changed (now extends \SplFileInfo),
  * File: move() creates the target directory when it does not exist
  * UploadedFile: introduction of getClientXXX() methods (for Size, OriginalName, MimeType)

If this PR does not get merged UploadedFile should at least be fixed: [Client.php](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Client.php#L124) relies on a last parameter which is no more defined and which is used to bypass [move_uploaded_file()](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/File/UploadedFile.php#L155) in test mode.

If this could be merged, I'll detail the changes in UPDATE.md

---------------------------------------------------------------------------

by fabpot at 2011/06/14 08:20:59 -0700

I'll merge it. Can you update the UPDATE file?

---------------------------------------------------------------------------

by vicb at 2011/06/14 09:24:01 -0700

done
2011-06-15 08:57:16 +02:00
Victor Berchet
9d6357c35b [HttpFoundation] Document the changes to the File classes 2011-06-14 18:21:04 +02:00
Fabien Potencier
06614cd6ca [Yaml] moved exceptions to their own sub-namespace (added a specific exception for the dump) 2011-06-14 16:25:26 +02:00
Fabien Potencier
3859589daa [Yaml] renamed load() to parse() 2011-06-14 16:25:25 +02:00
Fabien Potencier
d16a708cc8 [Form] simplified file type class
File uploads documentation is here:

https://github.com/symfony/symfony-docs/pull/400
2011-06-13 18:11:18 +02:00
Fabien Potencier
96045739b1 [TwigBundle] removed the extensions setting 2011-06-11 07:50:14 +02:00
Christophe Coevoet
5458baf465 [MonologBundle] Changed the default bubbling behavior. Fixes #1268 2011-06-10 19:44:10 +02:00
Lukas Kahwe Smith
b7c615d869 clarified that BC is broken in the Serializer component 2011-06-10 15:04:57 +02:00
Lukas Kahwe Smith
77fd5805e1 added UPDATE notes for Serializer component changes 2011-06-10 01:13:38 +02:00
Fabien Potencier
852a4c9c6a [Form] removed the file upload temporary storage feature
The current implementation is not ready for inclusion in 2.0. It has several
known problems (security, not possible to disable it, not "cloud-compatible",
...) and it's not a must have feature anyway.

Some references:

 * Security issue in FileType: https://github.com/symfony/symfony/issues/1001
 * Validation fails on file, still stored in TemporaryStorage: https://github.com/symfony/symfony/issues/908
 * Add a size argument & ability to configure TemporaryStorage: https://github.com/symfony/symfony/pull/748

This feature should be reworked and discussed for inclusion in 2.1.
2011-06-09 12:44:36 +02:00
Fabien Potencier
1e8cd6d34d [HttpFoundation] removed the leading . for extensions 2011-06-09 12:42:42 +02:00
Fabien Potencier
fbf36957e6 refactored Doctrine Bridge
* added a RegistryInterface

 * changed all classes to depend on the Registry instead of a specific EntityManager

This is more consistent as the validator already took the registry and this allows
to use any entity manager in Forms.
2011-06-08 08:35:48 +02:00
Fabien Potencier
facff73049 made the console tool more powerful
* The command names have now full support for nested namespaces. It means
   that abbreviations work for each sub-namespace:

        ./app/console doctrine:mapping:info

        # worked before
        ./app/console doctrine:map:in

        # works now
        ./app/console doc:map:in

 * Aliases are now first class citizen. They can have their own namespace,
   like the main name. So, now, there is no difference between an alias and a
   name.

 * As names and aliases can be namespaced, the Command::getFullName() and
   Command::getNamespace() method have been removed.
2011-06-07 17:51:43 +02:00
Fabien Potencier
89f544afb6 moved Twig form templates to the Twig bridge 2011-06-07 16:38:23 +02:00
Fabien Potencier
a17478ff74 tweaked previous commit 2011-06-07 11:48:08 +02:00
Fabien Potencier
a98436fd6a updated UPDATE file 2011-06-06 18:07:33 +02:00
Fabien Potencier
62ac58127a tweaked previous commit 2011-06-06 18:04:44 +02:00
Fabien Potencier
63f37c0e93 Merge remote branch 'weaverryan/beta3_swiftmailer_update'
* weaverryan/beta3_swiftmailer_update:
  [UPDATE] Adding more details - the `Swift_` prefix must also be removed
  [UPDATE] Adding details on the swiftmailer config change
2011-06-06 18:03:40 +02:00
Joseph Bielawski
c244545255 Make UPDATE file more "githubish" ;-)
Added info about setting attributes on form field labels
2011-06-02 03:51:23 -07:00
Fabien Potencier
3d532f806a [FrameworkBundle] renamed getProfiler to getProfile (as the method now returns a Profile instance) 2011-06-01 10:55:46 +02:00
Fabien Potencier
28527c7c91 renamed some UniversalClassLoader for better consistency 2011-05-31 09:28:32 +02:00
Fabien Potencier
79e709cdc9 removed the ON_ prefix for Form event names 2011-05-31 07:19:18 +02:00
Fabien Potencier
d0a4dbde8f fixed typo 2011-05-30 16:29:30 +02:00
Fabien Potencier
4db1ec8b6f updated UPDATE file to document changes to the event dispatcher 2011-05-30 13:53:48 +02:00
Ryan Weaver
a84e19edc1 [UPDATE] Adding more details - the Swift_ prefix must also be removed 2011-05-29 15:32:22 -05:00
Ryan Weaver
a8dbb4b100 [UPDATE] Adding details on the swiftmailer config change 2011-05-29 15:25:20 -05:00
Miha Vrhovnik
aae80b6679 Added a note about BC break for DateType into UPDATE.md file 2011-05-28 10:58:16 +02:00
Johannes Schmitt
9c0db88851 updated to latest changes in Doctrine 2011-05-24 13:29:44 +02:00
Joseph Bielawski
b5d657fbef Make UPDATE file more githubish :) 2011-05-23 15:54:31 -07:00
Fabien Potencier
6f579bac84 added a note about Doctrine Common version 2011-05-23 08:04:20 +02:00
Johannes Schmitt
51f1add9b3 Merge remote branch 'origin/master' into doctrine 2011-05-23 07:09:58 +02:00
Johannes Schmitt
6c0b0449a6 Merge remote branch 'origin/master' into annotations
Conflicts:
	UPDATE.md
	src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
	src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
2011-05-19 22:49:59 +02:00
Johannes Schmitt
5b007e3ae2 Merge remote branch 'origin/master' into doctrine 2011-05-19 14:34:24 +02:00
Bernhard Schussek
f467317bab [Form] Renamed view variable "name" to "full_name"
The variable "name" now contains the local, short name (equivalent to $form->getName()).
2011-05-18 22:16:16 +02:00
Fabien Potencier
a15e846568 added a way to disable forms, and force validation to be enabled when forms are enabled (closes #840) 2011-05-18 15:45:34 +02:00
Fabien Potencier
403156eba3 updated vendors, fixed typo 2011-05-17 15:58:52 +02:00
Fabien Potencier
eb202bb7b7 merged kriswallsmith/form/csrf-intention 2011-05-17 15:25:50 +02:00
Fabien Potencier
02e77ec4e3 [Routing] moved Matcher exceptions 2011-05-17 10:11:27 +02:00
Kris Wallsmith
9a8e3518c2 added a note about the rename to UPDATE 2011-05-16 14:17:39 -07:00
Johannes Schmitt
ff4a2209e3 [DoctrineBundle] changes the naming convention for YML, and XML metadata files 2011-05-15 11:00:00 +02:00
Johannes Schmitt
2d8afd8dd6 Merge remote branch 'origin/master' into annotations
Conflicts:
	src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php
	src/Symfony/Bundle/FrameworkBundle/Resources/config/validator.xml
	src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php
2011-05-14 12:51:05 +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
Fabien Potencier
9abd53c2b4 merged Seldaek/serializer_fix 2011-05-11 10:16:15 +02:00
Jordi Boggiano
c6fa1b42ea Fixed typo 2011-05-11 01:32:39 +02:00
Johannes Schmitt
675a86f2e9 updated UPDATE file 2011-05-10 11:27:18 +02:00
Fabien Potencier
50c1cce014 Merge remote branch 'schmittjoh/security'
* schmittjoh/security:
  [HttpFoundation] added unit test
  [Security][HttpFoundation] splits Request::hasSession() into hasSession(), and hasPreviousSession()
  [SecurityBundle] added some tests
  add provider to configuration
  update DI to handle change in config and another provider
  separate dbal specific acl config
  add provider to configuration
  update DI to handle change in config and another provider
  separate dbal specific acl config
2011-05-09 14:26:36 +02:00
Fabien Pennequin
ad0d95d0bd Fixed typo 2011-05-08 22:02:13 +02:00
Jordi Boggiano
9311b0a7e5 [Serializer] Removed properties argument 2011-05-08 18:32:22 +02:00
Jordi Boggiano
49008b60c6 Update UPDATE file 2011-05-08 18:23:26 +02:00
Fabien Pennequin
983caef290 Added notice for File::getDefaultExtension() method 2011-05-08 11:15:41 +02:00