Commit Graph

4162 Commits

Author SHA1 Message Date
Fabien Potencier
8b83b9847b Merge remote branch 'wtfzdotnet/patch-1'
* wtfzdotnet/patch-1:
  Some changes to the translation of "should" -> "zou moeten", "must" -> "moeten".
2011-05-04 08:05:01 +02:00
Michael Holm
8be22f19d7 First sample of translation. 2011-05-04 01:59:48 +02:00
Johannes Schmitt
2c287676fb [DependencyInjection] fixes a bug when requesting a definition that uses property injection 2011-05-03 23:46:02 +02:00
Fabien Potencier
c7fddca891 replaced some url..code by rawurl..code 2011-05-03 23:06:55 +02:00
wtfzdotnet
898019559a Some changes to the translation of "should" -> "zou moeten", "must" -> "moeten". 2011-05-03 14:06:33 -07:00
Fabien Potencier
e8838e51a6 [DoctrineBundle] fixed previous merge 2011-05-03 16:52:19 +02:00
Fabien Potencier
a02805714f [DoctrineBundle] merged fabpot:doctrine-registry 2011-05-03 16:38:59 +02:00
Daniel Gomes
8870d3f31e Merge remote-tracking branch 'upstream/master' 2011-05-03 14:28:33 +01:00
Daniel Gomes
0147df6b22 added translation for European Portugues (Portugal) 2011-05-03 14:27:37 +01:00
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
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
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
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
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
Fabien Potencier
422c7b2794 [WebProfilerBundle] tweaked CSS 2011-05-01 10:05:56 +02:00
Fabien Potencier
bad21f24cb [DoctrineBundle] removed a reference to doctrine.orm.%s_entity_manager 2011-05-01 09:49:50 +02:00
Fabien Potencier
e5bd50e712 Merge remote branch 'kriswallsmith/assetic/sass-imports'
* kriswallsmith/assetic/sass-imports:
  [AsseticBundle] updated sass, scss and compass filter configs to include base dir
2011-05-01 09:26:25 +02:00
Fabien Potencier
a4c6243743 [DoctrineBundle] refactored commands 2011-05-01 09:07:08 +02:00
Kris Wallsmith
ee3c239d12 [AsseticBundle] updated sass, scss and compass filter configs to include base dir 2011-04-30 19:53:02 -07:00
Fabien Potencier
a525a670a3 [DoctrineBundle] made an error message clearer 2011-04-30 22:43:14 +02:00
Hugo Hamon
c6bd284ecd [Console] fixed phpdoc for Command class. 2011-04-30 22:17:30 +02:00
Fabien Potencier
d31c403bae Merge remote branch 'pborreli/tests-fix-typos'
* pborreli/tests-fix-typos:
  Various typos
  [WebProfilerBundle] Fixed typo
  [WebProfilerBundle] Adding unit tests
2011-04-30 21:53:15 +02:00
Pascal Borreli
391744719a Various typos 2011-04-30 19:40:15 +00:00
Fabien Potencier
8b8545895f [DoctrineBundle] fixed auto-mapping
When auto_mapping is true, you can avoid a bundle to be
automatically mapped by setting the value to false:

    auto_mapping: true
    mappings:
        BlogBundle: false

With the above configuration, all bundles will be
auto-mapped, but the BlogBundle won't be.

Bundles that are defined in mappings won't be
managed by the auto-mapping feature:

    auto_mapping: true
    mappings:
        BlogBundle: xml
2011-04-30 21:18:20 +02:00
Pascal Borreli
9960c86db9 [WebProfilerBundle] Fixed typo 2011-04-30 18:54:22 +00:00
Pascal Borreli
11d25f61e8 [WebProfilerBundle] Adding unit tests 2011-04-30 18:42:30 +00:00
Tobias Naumann
ad3fd30365 [DoctrineBundle] fixes undefined index notice 2011-04-30 11:25:47 +02:00
Fabien Potencier
885d927775 [DoctrineBundle] fixed typo 2011-04-30 08:46:14 +02:00
Fabien Potencier
bb7b7e851d [FrameworkBundle] refactored tests 2011-04-30 07:36:59 +02:00
Fabien Potencier
2adc56d181 Merge remote branch 'danielholmes/request_listener_test'
* danielholmes/request_listener_test:
  [FrameworkBundle] added RequstListener test verifying request context http port fix
2011-04-30 07:26:08 +02:00
Fabien Potencier
158181d34b Merge remote branch 'danielholmes/request_context_routing'
* danielholmes/request_context_routing:
  [Routing] added setContext to RouterInterfaces as it is used on RouterInterface references
2011-04-30 07:26:04 +02:00
Fabien Potencier
55aff78a59 Merge remote branch 'noelg/i18n-translations-dir'
* noelg/i18n-translations-dir:
  [translations] Moved the application translations directory under Resources to be consistent with bundles
2011-04-30 07:24:13 +02:00
Fabien Potencier
b048c44b46 Merge remote branch 'vicb/file-security'
* vicb/file-security:
  [HttpFoundation] Sanitize uploaded file original name
2011-04-30 07:21:47 +02:00
Fabien Potencier
79ac931358 Merge remote branch 'igorw/templating-optional-globals'
* igorw/templating-optional-globals:
  [TwigBundle] Default $globals to null as in FrameworkBundle/PhpEngine
  make Templating Engine $globals optional
2011-04-30 07:20:22 +02:00
Daniel Holmes
625cb11d1e [FrameworkBundle] added RequstListener test verifying request context http port fix 2011-04-30 14:24:26 +10:00
Daniel Holmes
b14db26062 [Routing] added setContext to RouterInterfaces as it is used on RouterInterface references 2011-04-30 13:56:40 +10:00
Lukas Kahwe Smith
3248f02067 make it possible to read the normalizerCache when inheriting
see https://github.com/FriendsOfSymfony/RestBundle/compare/lazy_normalizer_refactoring
2011-04-29 23:51:37 +02:00
Deni
9dfe5bc5a4 [FrameworkBundle] Fixed russian translation of the Choice constraint 2011-04-30 01:20:20 +04:00
Igor Wiedler
aa8428632b [TwigBundle] Default $globals to null as in FrameworkBundle/PhpEngine 2011-04-29 22:53:45 +02:00
Igor Wiedler
e7c0aea587 make Templating Engine $globals optional 2011-04-29 22:36:24 +02:00
Victor Berchet
dccac192d6 [HttpFoundation] Sanitize uploaded file original name 2011-04-29 19:27:53 +02:00
noel guilbert
f644bbc027 [translations] Moved the application translations directory under Resources to be consistent with bundles 2011-04-29 17:48:38 +02:00
Fabien Potencier
f8cc8a7deb [DoctrineBundle] removed unneeded parameter definition 2011-04-29 16:48:19 +02:00
Fabien Potencier
ec8c9eed66 removed the doctrine.orm.class_metadata_factory_name parameter 2011-04-29 16:45:31 +02:00
Fabien Potencier
746ac2d24e [FrameworkBundle] removed the need to specify the http/https port when you don't switch from http to https or the other way round 2011-04-29 16:42:49 +02:00
Fabien Potencier
2eb06bee1e [FrameworkBundle] updated XSD 2011-04-29 16:35:33 +02:00
Fabien Potencier
ff9a7914e6 [WebProfilerBundle] replace url by path for WDT 2011-04-29 16:35:13 +02:00
Fabien Potencier
01695bc654 [DoctrineBundle] refactored event listeners/subscribers to not rely on parameter name conventions
* Doctrine event subscribers now all use the same "doctrine.event_subscriber" tag. To specify a connection,
   use the "connection" attribute.

 * Doctrine event listeners now all use the same "doctrine.event_listener" tag. To specify a connection,
   use the "connection" attribute.
2011-04-29 16:09:26 +02:00
Fabien Potencier
a607afb8d2 [DoctrineBundle] added a doctrine.dbal.connections parameter that keeps the list of registered DBAL connections 2011-04-29 16:05:01 +02:00
Fabien Potencier
43e38c3ba4 [DoctrineBundle] changed doctrine.orm.entity_managers parameter to store the names and the ids 2011-04-29 16:04:54 +02:00
Fabien Potencier
a2a8edbabd [Twig] made a small tweak in generated templates 2011-04-29 15:26:56 +02:00
Fabien Potencier
c631061955 Merge remote branch 'kertz/typo_fix'
* kertz/typo_fix:
  fixed a typo
2011-04-29 11:06:45 +02:00
Fabien Potencier
72a5ba78a0 Merge remote branch 'xmontana/master'
* xmontana/master:
  renamed catalan translation filename according to locale
  renamed catalan translation filename according to locale
2011-04-29 11:06:21 +02:00
Fabien Potencier
a487c5200e Revert "[TwigBundle] removed the extends tags from the table layout (it's not needed anymore)"
This reverts commit 66a01855f7.
2011-04-29 11:03:45 +02:00
Fabien Potencier
6180b6aeb5 [TwigBundle] removed obsolete code 2011-04-29 10:48:20 +02:00
Fabien Potencier
66a01855f7 [TwigBundle] removed the extends tags from the table layout (it's not needed anymore) 2011-04-29 10:25:01 +02:00
Fabien Potencier
3a36c08d8e added the possibility to easily customize the template of just one widget of a form (PHP edition) 2011-04-29 07:33:55 +02:00
Fabien Potencier
a204aec08b added the possibility to easily customize the template of just one widget of a form 2011-04-29 00:20:21 +02:00
Xmontana
277bfb28b0 renamed catalan translation filename according to locale 2011-04-28 21:00:29 +02:00
chispita
cea05575a2 renamed catalan translation filename according to locale 2011-04-28 20:57:06 +02:00