Commit Graph

4082 Commits

Author SHA1 Message Date
Fabien Potencier
bd608c8bfa [DoctrineBundle] removed redundant check 2011-05-03 07:38:23 +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
6b74483204 [DoctrineBundle] made the ORM configuration service private (there are accessible via the entity manager anyway) 2011-05-02 18:50:13 +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
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