Commit Graph

683 Commits

Author SHA1 Message Date
Fabien Potencier
cf6885a0a9 [HttpKernel] fixed typo 2010-07-27 13:36:58 +02:00
Fabien Potencier
60670faf55 [FrameworkBundle] added PHPDoc to the Controller class 2010-07-27 11:53:34 +02:00
Fabien Potencier
88c742731d [FrameworkBundle] removed Controller::getMailer() method (just use ->container['mailer'] instead) 2010-07-27 11:42:17 +02:00
fivestar
f131ac4f15 [FrameworkBundle] fixed indentation 2010-07-27 07:20:43 +02:00
Jonathan H. Wage
86b5538f01 [DoctrineBundle] Removing old and unused services defined in xml. The services are defined in PHP extension now. 2010-07-26 20:12:23 +02:00
Fabien Potencier
1caabe1123 [HttpKernel] fixed content-type management for ESIs when charset is part of the response content-type header 2010-07-26 15:10:59 +02:00
Fabien Potencier
be57358e71 fixed some merging problems and disable non-existent cache service 2010-07-26 09:29:43 +02:00
Jonathan H. Wage
13663966d0 [DoctrineBundle] Adding missing cache driver configuration for each entity manager. 2010-07-26 09:10:22 +02:00
Jonathan H. Wage
ef070d0dd1 [DoctrineBundle] Refactoring DoctrineBundle to match DoctrineMongoDBBundle 2010-07-26 09:10:18 +02:00
Jonathan H. Wage
2c1e85c3c0 [DoctrineMongoDBBundle] Fixing code standards. 2010-07-26 08:59:50 +02:00
Jonathan H. Wage
ee9a5db50c [DoctrineMongoDBBundle] Finishing implementation of DoctrineMongoDBBundle to support multiple connections/document managers plus refactoring and cleaning up code along the way. 2010-07-26 08:59:01 +02:00
Fabien Potencier
6475bb9ccf fixed __toString() methods that can return false under certain circumstancies 2010-07-25 18:24:03 +02:00
fivestar
2de5efdd1a [Validator] fixed the problem with conflict "File" name in namespace at Symfony\Components\Validator\Constraints\FileValidator when Symfony\Components\Validator\Comstraints\File was loaded before loading FileValidator 2010-07-24 19:46:04 +02:00
Jordi Boggiano
6142700881 [HttpFoundation] domain shouldn't be required
Spec says: "The default value of domain is the host name of the server which generated the cookie response."
2010-07-24 19:44:02 +02:00
Jordi Boggiano
02fe129013 [HttpFoundation] don't check twice if it's null 2010-07-24 19:44:02 +02:00
Jordi Boggiano
fb55f7beb2 [HttpFoundation] set httponly to true by default
This is a more secure default and has virtually no impact unless you try to read cookies from javascript.
2010-07-24 19:44:02 +02:00
Jordi Boggiano
d20f8df15e [HttpFoundation] comment tweak for clarity 2010-07-24 19:44:02 +02:00
Fabien Potencier
f12e5747ae [Routing] simplified RouterInterface 2010-07-24 19:19:54 +02:00
Fabien Potencier
e35d345204 changed HttpKernel workflow to allow more flexibility 2010-07-22 22:32:11 +02:00
Fabien Potencier
3ec9005680 [Templating] fixed misnamed variable that caused some double-rendering problems 2010-07-21 23:05:31 +02:00
Fabien Potencier
7dc5ae3808 renamed request path property to request attributes 2010-07-21 22:49:49 +02:00
Fabien Potencier
df8ccb4696 [FrameworkBundle] added an event to filter the controller arguments 2010-07-21 21:13:34 +02:00
Jonathan H. Wage
29e083e9da [DoctrineBundle] Fixing failing DoctrineExtensionTest related to container not calling freeze() 2010-07-21 20:12:34 +02:00
Brandon Turner
f41746b91e Fixed naming changes due to namespace refactor 2010-07-21 10:43:23 -05:00
Jeremy Mikola
5b2e92c215 [Form] Fixed reference to \Traversable 2010-07-21 14:41:44 +02:00
Noël GUILBERT
bfb081fd96 [ZendBundle] added Zend\\Translator component 2010-07-21 14:40:26 +02:00
Jordi Boggiano
1e623469a9 [Form] Swap default textarea rows/cols values 2010-07-20 16:41:34 +02:00
Jordi Boggiano
13d890c880 [Routing] Fix missing a trailing slash on windows 2010-07-20 16:41:09 +02:00
Jordi Boggiano
42f1ca42e8 [DependencyInjection] Fix missing a trailing slash on windows 2010-07-20 16:41:01 +02:00
Fabien Potencier
ef401180a7 fixed previous commit 2010-07-20 16:40:57 +02:00
Fabien Potencier
3f270f5faa [FrameworkBundle] added a skeleton for configuration in plain PHP 2010-07-20 16:34:40 +02:00
Fabien Potencier
dcaf436d9a updated the framework to take into account the last changes of the DI component 2010-07-20 13:11:51 +02:00
Fabien Potencier
60c6827f23 [DependencyInjection] refactored loaders
* refactored the import mechanism for better flexibility
 * added two methods to LoaderInterface: supports() and setResolver()
 * added a LoaderResolver interface
 * added a Loader base class
 * added new loaders: DelegatingLoader, PhpFileLoader, and ClosureLoader
2010-07-20 13:11:51 +02:00
Fabien Potencier
4e3e86c4a7 refactored routing management (it's now possible to disable the default routing)
* removed the Kernel::registerRoutes() method
 * added a router entry in <web:config> (replaces the registerRoutes() method)
       <web:config>
           <web:router resource="%kernel.root_dir%/config/routing.xml" />
       </web:config>
 * refactored routing configuration in its own routing.xml file (leverages the new routing component API),
   which is loaded only if <web:router> is defined in the configuration
2010-07-20 13:11:50 +02:00
Fabien Potencier
14cecd5231 [Routing] refactored loaders
* refactored the import mechanism for better flexibility
 * added two methods to LoaderInterface: supports() and setResolver()
 * added a LoaderResolver interface
 * added a Loader base class
 * added new loaders: DelegatingLoader, ClosureLoader, and PhpFileLoader
 * changed the Router constructor signature (now takes a Loader)
2010-07-20 13:11:50 +02:00
Fabien Potencier
e6cbfd7292 [Console] changed CommandTester to allow testing Command classes without the need for an Application 2010-07-20 13:11:49 +02:00
Fabien Potencier
c57cae7600 fixed test configuration and broken tests 2010-07-18 12:16:59 +02:00
Fabien Potencier
93f2d6eaa6 [FrameworkBundle] removed pdo.xml 2010-07-17 07:58:44 +02:00
fivestar
22f6eec0ef [TwigBundle] fixed class name in twig.xml 2010-07-17 07:55:09 +02:00
Jonathan H. Wage
607f2734ab [DoctrineBundle] Make sure directories exist before trying to write files. 2010-07-16 23:05:10 +02:00
Jonathan H. Wage
216dc0f5bd [DoctrineBundle, DoctrineMongoDBBundle] Making sure proxy directory is created when DI container is being built 2010-07-16 22:59:08 +02:00
Jonathan H. Wage
e33894a80c [DoctrineBundle] Fixing issue with doctrine:generate:entity command when no --fields are specified 2010-07-16 22:58:54 +02:00
Jonathan H. Wage
909ea54d54 Fixing issue with filters. 2010-07-16 22:58:51 +02:00
Jonathan H. Wage
8417e6936a Fixing coding standards. 2010-07-16 22:58:48 +02:00
IamPersistent
7287913bc6 [DoctrineBundle]fixed defect in doctrine:generate:entity where xml extension was added to all mapping types 2010-07-16 22:58:44 +02:00
Nathanael d. Noblet
b1b633cc71 fix output file name 2010-07-16 22:58:04 +02:00
Brandon Turner
1bc973e5a9 [DoctrineBundle] Added memory and charset options
Added missing driver options (memory, used by sqlite; charset, used by oci) to
the supported configuration options supported by DoctrineBundle.
2010-07-16 22:57:58 +02:00
Brandon Turner
b828617420 [DoctrineBundle] Fixed multiple connections via XML
Fixed a bug (possibly introduced by e63ff6e04b) that prevented
multiple DBAL connections from being configured via an XML configuration file.

When multiple DBAL connections are specified via XML similar to:

    <doctrine:dbal>
      <doctrine:connections>
        <doctrine:connection
          id="conn1"
          ..
        />
        <doctrine:connection
          id="conn2"
          ..
        />
      </doctrine:connections>
    </doctrine:dbal>

XMLFileLoader produces a configuration similar to:

    array('connections' => array(
      'connection' => array(
        0 => array(
          'id' => 'conn1',
        ),
        1 => array(
          'id' => 'conn2',
        )
      )
    )

whereas when one connection is specified via XML similar to:

    <doctrine:dbal>
      <doctrine:connections>
        <doctrine:connection
          id="conn1"
          ..
        />
      </doctrine:connections>
    </doctrine:dbal>

XMLFileLoader produces a configuration similar to:

    array('connections' => array(
      'connection' => array(
        'id' => 'conn1',
      )
    )

This commit fixes DoctrineExtension to properly handle both cases, while still
supporting YAML configuration files.
2010-07-16 22:57:51 +02:00
Fabien Potencier
44757b0c77 [DependencyInjection] added a check for the class name when dumping a container to PHP 2010-07-16 20:59:38 +02:00
Fabien Potencier
1dd5b61e17 [DependencyInjection] added a check for the class name when dumping a container to PHP 2010-07-16 20:55:22 +02:00