Commit Graph

4510 Commits

Author SHA1 Message Date
Fabien Potencier
731993869c Merge remote branch 'Seldaek/exception_handling'
* Seldaek/exception_handling:
  [HttpKernel] Log non-http exceptions as critical as well
2011-05-03 14:53:38 +02:00
Fabien Potencier
13bc7c7c53 Merge remote branch 'Seldaek/exception_template'
* Seldaek/exception_template:
  [FrameworkBundle] Adjust styling and display of logs
2011-05-03 14:53:28 +02:00
Fabien Potencier
27d02a7d4a [Routing] fixed regression (/ should not be matched by /{foo} when foo has no default value) 2011-05-03 14:48:08 +02:00
Jordi Boggiano
04f9b23b34 [FrameworkBundle] Adjust styling and display of logs 2011-05-03 14:44:27 +02:00
Jordi Boggiano
0ca4ed33fe [HttpKernel] Log non-http exceptions as critical as well 2011-05-03 14:43:22 +02:00
Fabien Potencier
e9b085ef42 [DoctrineBundle] fixed typo 2011-05-03 14:06:34 +02:00
Fabien Potencier
036be03dff [HttpKernel] fixed a PHP notice 2011-05-03 13:55:00 +02:00
Fabien Potencier
3c2b3f2537 Merge remote branch 'Seldaek/exception_test'
* Seldaek/exception_test:
  [HttpKernel] Fix console output for reals
2011-05-03 13:43:49 +02:00
Fabien Potencier
ca4c1355c7 [DoctrineBundle] made doctrine:generate:entities smarter
The doctrine:generate:entities is now able to generate classes
based on a bundle name, a class name, or a namespace.

The command has still some limitations which will be hopefully
be fixed later on.

If also generates the repository class when possible
(replaces the doctrine:generate:repositories command).
2011-05-03 13:39:01 +02:00
Jordi Boggiano
b3ef74d309 [HttpKernel] Fix console output for reals 2011-05-03 09:25:56 +02:00
Fabien Potencier
0139a800f9 [HttpKernel] prevented output on the console when running the test 2011-05-03 09:00:56 +02:00
Fabien Potencier
d2a9b23c28 [Routing] fixed routing when a pattern has only one segment which is an optional variable 2011-05-03 08:54:33 +02:00
Fabien Potencier
014b19040c [DoctrineBundle] changed the Registry to return a new instance if the current em is closed
$em = $this->get('doctrine')->getEntityManager();

    $em->getConnection()->beginTransaction(); // suspend auto-commit
    try {
        //... do some work
    } catch (Exception $e) {
        $em->getConnection()->rollback();
        $em->close();

        // get a new EM
        $em = $this->get('doctrine')->getEntityManager();
    }
2011-05-03 07:39:12 +02:00
Fabien Potencier
bd608c8bfa [DoctrineBundle] removed redundant check 2011-05-03 07:38:23 +02:00
Kris Wallsmith
4ea274244d [Form] updated listener to check that data is an array 2011-05-02 15:56:35 -07:00
Fabien Potencier
3e514c6eb8 [FrameworkBundle] simplified code 2011-05-02 23:04:24 +02:00
Fabien Potencier
4fd7892b34 [MonologBundle] fixed previous commit 2011-05-02 23:03:13 +02:00
Fabien Potencier
12fb4a0a95 Merge remote branch 'Seldaek/monolog_bundle'
* Seldaek/monolog_bundle:
  [MonologBundle] Added support for new Monolog log level
  [FrameworkBundle] Treat all log messages >=ERR as errors
2011-05-02 22:59:14 +02:00
Fabien Potencier
8746f7b902 Merge remote branch 'Seldaek/exception_logging'
* Seldaek/exception_logging:
  Fixed status code check
  [HttpKernel] Log 500+ errors as critical and not error
2011-05-02 22:58:19 +02:00
Fabien Potencier
f08fc7aae2 Merge remote branch 'Seldaek/loggerinterface'
* Seldaek/loggerinterface:
  [HttpKernel] Removed log() from the LoggerInterface as the priority can not be safely determined across implementations
  [HttpKernel] Prevent errors leaking out in the console on windows
2011-05-02 22:57:38 +02:00
Fabien Potencier
6b5438aa38 [DoctrineBundle] introduced a Registry class
The Registry knows all connections and entity managers declared into a service
container. The Registry is available via the 'doctrine' service.

If can be used to get connections and entity managers by name:

Before:

$em = $this->get('doctrine.orm.entity_manager');
$em = $this->get('doctrine.orm.foobar_entity_manager');

After:

$em = $this->get('doctrine')->getEntityManager();
$em = $this->get('doctrine')->getEntityManager('foobar');

It is better for several reasons:

 * we rely less on naming conventions
 * IDEs will be able to auto-complete methods
2011-05-02 22:28:48 +02:00
Fabien Potencier
b0f84e259d fixed typo 2011-05-02 22:21:20 +02:00
Jordi Boggiano
fd08f187c8 Fixed status code check 2011-05-02 21:50:21 +02:00
Jordi Boggiano
e0c12fa080 [HttpKernel] Removed log() from the LoggerInterface as the priority can not be safely determined across implementations 2011-05-02 19:04:49 +02:00
Fabien Potencier
6b74483204 [DoctrineBundle] made the ORM configuration service private (there are accessible via the entity manager anyway) 2011-05-02 18:50:13 +02:00
Jordi Boggiano
838853e58b [HttpKernel] Log 500+ errors as critical and not error
This allows people to filter easily between 404 type of responses (that are mostly for users) and real errors in their application (where they probably want to get an email notification
2011-05-02 18:49:30 +02:00
Fabien Potencier
d0e31b8ca6 changed Application to have nice error messages when something bad happens early on the CLI 2011-05-02 18:35:38 +02:00
Jordi Boggiano
a56ea15363 [MonologBundle] Added support for new Monolog log level 2011-05-02 18:32:17 +02:00
Jordi Boggiano
25d7009c1c [FrameworkBundle] Treat all log messages >=ERR as errors 2011-05-02 18:31:51 +02:00
Jordi Boggiano
d05c59227d [HttpKernel] Prevent errors leaking out in the console on windows 2011-05-02 18:28:05 +02:00
Fabien Potencier
fc3be8a7cf Merge remote branch 'schniper/patch-1'
* schniper/patch-1:
  Fix Compass class path
2011-05-02 16:20:02 +02:00
Fabien Potencier
8210fb2f0f Merge remote branch 'kriswallsmith/my-email-address'
* kriswallsmith/my-email-address:
  updated my email address
2011-05-02 16:16:11 +02:00
Kris Wallsmith
1cd83c93e0 [AsseticBundle] fixed _controller/ prefix when dumping assets 2011-05-02 06:06:34 -07:00
Kris Wallsmith
562d84a964 updated my email address 2011-05-02 05:59:56 -07:00
Fabien Potencier
a3270da763 [DoctrineBundle] removed unused tag 2011-05-02 13:44:18 +02:00
Costin Bereveanu
cb2c6da346 Fix Compass class path 2011-05-02 02:12:56 -07:00
Fabien Potencier
3286819145 [DoctrineBundle] fixed CS 2011-05-01 23:01:52 +02:00
Matt Drollette
0029cbc397 made esi service public 2011-05-01 14:35:26 -05:00
Fabien Potencier
8b244f4f5e [DoctrineBundle] fixed CS, removed some use statements 2011-05-01 21:30:19 +02:00
Fabien Potencier
aa29affc14 [DoctrineBundle] made some services private 2011-05-01 17:38:34 +02:00
Fabien Potencier
f55237dad7 [FrameworkBundle] fixed typo 2011-05-01 17:38:14 +02:00
Fabien Potencier
0642b60079 Merge remote branch 'lsmith77/serializer'
* lsmith77/serializer:
  make it possible to read the normalizerCache when inheriting
2011-05-01 17:30:53 +02:00
Fabien Potencier
82e1713850 Merge remote branch 'hhamon/console_fix'
* hhamon/console_fix:
  [Console] fixed phpdoc for Command class.
2011-05-01 17:30:24 +02:00
Fabien Potencier
11cdff93f3 [FrameworkBundle] refactored container:debug command
* Use a dumper to serialize the container into the cache (XML)
 * Only keep the "real" services (abstract ones are not displayed anymore)
2011-05-01 17:21:20 +02:00
Fabien Potencier
0b165e13b2 [DependencyInjection] added public attribute when dumping a container to XML 2011-05-01 17:21:19 +02:00
Fabien Potencier
6fec656239 [DependencyInjection] forced anonymous services to always be private 2011-05-01 17:21:18 +02:00
Fabien Potencier
8b0450083a [DependencyInjection] removed unused vars 2011-05-01 17:21:17 +02:00
Fabien Potencier
03f7049c7e [DoctrineBundle] moved Doctrine proxy commands to their own sub-namespace 2011-05-01 12:12:49 +02:00
Fabien Potencier
6edb6447c8 [DoctrineBundle] fixed CS 2011-05-01 10:43:07 +02:00
Fabien Potencier
74a243bdd6 [DoctrineBundle] added connections and entity managers in web profiler 2011-05-01 10:06:10 +02:00