Commit Graph

1000 Commits

Author SHA1 Message Date
Brandon Turner 2052501634 [Form] fixed missing locale setting in unit tests 2010-09-25 07:57:57 +02:00
Brandon Turner 86b6aff5b6 [Form] fixed bug that prevented setLocale from working 2010-09-25 07:57:57 +02:00
Fabien Potencier eb942c8f18 [ZendBundle] fixed translator configuration 2010-09-25 07:57:53 +02:00
Fabien Potencier 0b98a2861e fixed PHPUnit configuration 2010-09-24 16:45:17 +02:00
Fabien Potencier 866c306dc8 removed the message interpolator system in the Validator component (i18n management should be done globally, not in a specific component) 2010-09-24 16:41:28 +02:00
Fabien Potencier 15ca8b4076 [FrameworkBundle] removed obsolete file 2010-09-24 16:34:03 +02:00
Fabien Potencier 69b538b632 [FrameworkBundle] removed the app:init command 2010-09-23 19:10:40 +02:00
Fabien Potencier d62befd67b [FrameworkBundle] fixed Filesystem when used within a phar archive 2010-09-23 19:09:30 +02:00
Dustin Whittle a01a74ef79 fixed typo in options 2010-09-23 09:04:44 +02:00
Dustin Whittle f3993b45c1 added width, height, alt tags for all images used in web profilers (for proper html) 2010-09-23 09:04:26 +02:00
Fabien Potencier 2d80788e3a [FrameworkBundle] added support for services as controllers 2010-09-23 08:41:24 +02:00
Jordi Boggiano 82f6a68eb2 [Validator] Allow DateTime objects as valid DateTimes 2010-09-22 09:16:26 +02:00
Fabien Potencier 2862c6cce4 refactored configuration names
How to upgrade (have a look at the skeleton):

  * the "web:config" namespace is now "app:config"

      -    <web:config csrf-secret="xxxxxxxxxx" charset="UTF-8" error-handler="null">
      -        <web:router resource="%kernel.root_dir%/config/routing.xml" />
      -        <web:validation enabled="true" annotations="true" />
      -    </web:config>
      +    <app:config csrf-secret="xxxxxxxxxx" charset="UTF-8" error-handler="null">
      +        <app:router resource="%kernel.root_dir%/config/routing.xml" />
      +        <app:validation enabled="true" annotations="true" />
      +    </app:config>

  * the "web:templating" namespace is now a sub-namespace of "app:config"

      -    <web:templating
      -        escaping="htmlspecialchars"
      -    />
      +    <app:config>
      +        <app:templating escaping="htmlspecialchars" />
      +    </app:config>

  * the "web:user" namespace is now a sub-namespace of "app:config"

      -    <web:user default-locale="fr">
      -        <web:session name="SYMFONY" type="Native" lifetime="3600" />
      -    </web:user>
      +    <app:config>
      +        <app:user default-locale="fr">
      +            <app:session name="SYMFONY" type="Native" lifetime="3600" />
      +        </app:user>
      +    </app:config>

  * the "web:test" namespace is now a sub-namespace of "app:config"

      -    <web:test />
      +    <app:config error_handler="false">
      +        <app:test />
      +    </app:config>

  * the "swift:mailer" namespace is now "swiftmailer:config"

      -    <swift:mailer
      +    <swiftmailer:config
               transport="smtp"
               encryption="ssl"
               auth_mode="login"

  * the "zend:logger" namespace is now a sub-namespace of "zend:config"

      -    <zend:logger
      -        priority="info"
      -        path="%kernel.logs_dir%/%kernel.environment%.log"
      -    />
      +    <zend:config>
      +        <zend:logger priority="info" path="%kernel.logs_dir%/%kernel.environment%.log" />
      +    </zend:config>
2010-09-20 21:08:18 +02:00
Thomas 66ddacf2e5 [Process] remove fork references as proc_* functions start a command from an independant process, does not copy the parent memory space like pcntl_* function 2010-09-20 11:05:32 +02:00
Fabien Potencier e093387179 [Finder] fixed a problem on Windows 2010-09-20 11:01:19 +02:00
Fabien Potencier ec066a0843 fixed misplaced file 2010-09-20 10:56:35 +02:00
Jordi Boggiano 71cc3a7773 [Form] avoid double-escape and then unescape
htmlspecialchars' fourth parameter allows you to avoid double-escaping in the first place
2010-09-19 08:35:50 +02:00
Kris Wallsmith e6bff045c9 [DoctrineMongoDBBundle] added a quick profiler panel 2010-09-18 07:17:22 +02:00
Kris Wallsmith 5f9c365971 [DoctrineMongoDBBundle] fixed formatting of booleans in query log 2010-09-18 07:17:11 +02:00
Jonathan H. Wage 115d073033 Fixing Dbal logger to work with latest DBAL 2010-09-18 07:17:06 +02:00
Brandon Turner 2fd9ffbaee [FrameworkBundle] Fixed reference to old class 2010-09-18 07:14:06 +02:00
Fabien Potencier d657adbfa2 removed Symfony\Framework
Things have been moved to Symfony\Component\HttpKernel
and Symfony\Bundle\FrameworkBundle

The kernel configuration namespace was removed and merged
with the main web configuration namespace (kernel:config => web:config,
kernel:test => web:test, and kernel:session => web:session):

Before:
<kernel:config charset="UTF-8" error_handler="null" />

<web:config csrf-secret="xxxxxxxxxx">
    <web:router resource="%kernel.root_dir%/config/routing.xml" />
    <web:validation enabled="true" annotations="true" />
</web:config>

After:
<web:config csrf-secret="xxxxxxxxxx" charset="UTF-8" error-handler="null">
    <web:router resource="%kernel.root_dir%/config/routing.xml" />
    <web:validation enabled="true" annotations="true" />
</web:config>

Renamed classes:

Symfony\{Framework => Bundle\FrameworkBundle}\Cache\Cache
Symfony\{Framework => Bundle\FrameworkBundle}\Client
Symfony\{Framework => Bundle\FrameworkBundle}\Debug\EventDispatcher
Symfony\{Framework => Bundle\FrameworkBundle}\Debug\EventDispatcherTraceableInterface
Symfony\{Framework => Bundle\FrameworkBundle}\EventDispatcher
Symfony\{Framework => Component\HttpFoundation}\UniversalClassLoader
Symfony\{Framework => Component\HttpKernel}\Bundle\Bundle
Symfony\{Framework => Component\HttpKernel}\Bundle\BundleInterface
Symfony\{Framework => Component\HttpKernel}\ClassCollectionLoader
Symfony\{Framework => Component\HttpKernel}\Debug\ErrorException
Symfony\{Framework => Component\HttpKernel}\Debug\ErrorHandler
Symfony\{Bundle\FrameworkBundle => Component\HttpKernel}\Debug\ExceptionListener
Symfony\{Framework => Component\HttpKernel}\Kernel
2010-09-17 12:58:24 +02:00
Fabien Potencier 1990fc543b [HttpKernel] added Closure support to ControllerResolver 2010-09-16 10:53:59 +02:00
Fabien Potencier 7734f44bc5 [Process] added a Process:isSucessful() method 2010-09-16 08:55:44 +02:00
Fabien Pennequin 61f18667f4 [Console] Added some tests for command shortcuts 2010-09-14 09:18:50 +02:00
Fabien Pennequin 56935f85df [Console] Fixed invalid help command shortcut 2010-09-14 09:18:47 +02:00
Jeremy Mikola a86bac44ce [Validator] Remove leading '@' when validating email domain MX record 2010-09-10 20:42:22 +02:00
Fabien Potencier 74bc9d461b [FrameworkBundle] made csrf_secret parameter optional 2010-09-10 19:32:17 +02:00
Jeremy Mikola 77602239a4 [Form] Add new fields in CollectionField::setData() 2010-09-10 19:31:02 +02:00
Jeremy Mikola 57c0ce0ec1 [Form] Remove support for ArrayObject as ChoiceField's choices option
Internally, ChoiceField expects both choices and preferred_choices to be a simple array, so I replaced incomplete bits of code that attempted to not modify a possible ArrayObject and instead added type checks in the configure() method (with unit tests for expected exceptions).
2010-09-10 19:30:59 +02:00
Fabien Potencier 226277fd0e added a way to activate CSRF protection from the configuration 2010-09-10 14:32:33 +02:00
Fabien Potencier 0de1c08d8d reverted "[Form] fixed default CSRF token generation as a token must be tied to the user somewhat"
This reverts commit d326c398e2.
2010-09-10 14:16:59 +02:00
Fabien Potencier d326c398e2 [Form] fixed default CSRF token generation as a token must be tied to the user somewhat 2010-09-10 14:13:56 +02:00
Antoine Hérault 4237fdd918 [Form] set file field as multipart 2010-09-10 12:34:32 +02:00
Antoine Hérault 7bd76610ca [HttpFoundation] fixed request files handling 2010-09-10 12:34:28 +02:00
Fabien Potencier 63793dd62e [Form] added missing use statement 2010-09-10 09:21:29 +02:00
ornicar 90da4d0c3c [DoctrineMongoDBBundle] Move test configuration fixtures to Resource/config/doctrine/metadata/orm/ 2010-09-10 07:49:18 +02:00
ornicar aa4c196356 [DoctrineBundle] Move test configuration fixtures to Resource/config/doctrine/metadata/orm/ 2010-09-10 07:49:13 +02:00
ornicar c537fb9eb2 [DoctrineMongoDBBundle] fix mapping dirs 2010-09-10 07:49:08 +02:00
ornicar b9a7b7e51a [DoctrineBundle] fix mapping dirs 2010-09-10 07:49:04 +02:00
ornicar eaaf447374 [DoctrineBundle] BC break - Load metadata files in Resources/config/doctrine/metadata/orm/ 2010-09-10 07:48:55 +02:00
Jeremy Mikola fb24b291c8 [Form] FieldGroup::addError() can now map errors to fields within nested FieldGroups
Property paths such as fields[group].fields[innerGroup].data were not being resolved correctly, since the second iteration of addError() (based on "group") would attempt to call get('fields') instead of get('innerGroup').  Solution is to remember to bump the propertyPath forward if we're at the fields property
2010-09-09 16:29:38 -04:00
Jeremy Mikola 9be7cbb115 [Form] CollectionField::setData() should remove old fields missing from new data 2010-09-09 16:27:18 -04:00
Jeremy Mikola 9f5469f62d [Form] Test case for binding a collection of field groups with an ArrayObject of objects. 2010-09-09 16:11:31 -04:00
Jeremy Mikola b3648b219b [Form] Fixed testBindSingleExpanded (was testing multiple, non-expanded) 2010-09-09 16:08:45 -04:00
Jeremy Mikola e52cf7afe0 [Form] ChoiceField tests for numeric choices 2010-09-09 16:06:55 -04:00
Jeremy Mikola 2b776bf2e8 [Form] ChoiceField test for using ArrayObject as choices option 2010-09-09 16:03:44 -04:00
Jeremy Mikola 6fc9b68fa7 [Form] Replace unset() with non-destructive logic in case the "choices" option is an object. 2010-09-09 16:01:34 -04:00
Fabien Potencier 50f039844b [Form] removed obsolete use statements 2010-09-09 18:29:50 +02:00
Fabien Potencier a141c98917 [HttpFoundation] moved File Component into the HttpFoundation one 2010-09-09 17:01:48 +02:00