Commit Graph

87 Commits

Author SHA1 Message Date
Fabien Potencier
0fbb1b916b cleaned up the DI extension loading mechanism 2010-07-09 16:28:06 +02:00
Kris Wallsmith
e63ff6e04b [DependencyInjection] fixed conversion of DOM to array when DOM includes multiple elements with the same name 2010-07-08 18:49:45 +02:00
Fabien Potencier
8d067bac51 [DepedencyInjection] amended previous commit
* fixed coding standards
 * made class optional as it is not defined when using a factory service
 * renamed factory attributes in XML files, updated XSD
 * removed the factory-class as it does nothing more than the regular class attribute
 * moved usage of Reflection as 'class' is not defined when a factory-service is used
 * added more tests
 * fixed PHP dumper
2010-07-05 11:08:56 +02:00
Benjamin Eberlei
ef91396618 [DependencyInjection] Add factory-class and factory-service concepts to DI Definition. A factory-class is a class-name for the static creation method of a service. A factory-service is the service object that has a factory method to construct a given service. Added tests. Changed Xml, Yaml Dumper and Loaders, PHP Dumper, aswell as the Runtime Builder Container. Graphviz changes missing! 2010-07-05 11:08:36 +02:00
Fabien Potencier
27458b653e [DependencyInjection] removed @property annotations as services are not available as properties anymore 2010-07-05 11:08:27 +02:00
Fabien Potencier
4bbf2ae055 [DependencyInjection] renamed constructor to factory method (like in Spring) 2010-07-05 09:47:47 +02:00
Fabien Potencier
a9ad743006 [DependencyInjection] changed the main services.xsd to be more strict (the validation was basically disabled because of ##any) 2010-07-05 09:14:02 +02:00
Fabien Potencier
e40447427a fixed phpdoc 2010-07-01 20:17:03 +02:00
Fabien Potencier
aa697d8a0c added Bundles and Extensions in the list of resources to monitor in dev environment 2010-06-28 08:57:17 +02:00
Fabien Potencier
9895eaf3cb refactored DIC 2010-06-27 19:21:18 +02:00
Fabien Potencier
c46884044d removed hardcoded symfony URL 2010-06-27 18:54:03 +02:00
Fabien Potencier
0e3b88a058 [DependencyInjection] fixed inheritence when using extensions 2010-06-22 17:27:49 +02:00
Fabien Potencier
61a8fc3c2c refactored the profiler classes 2010-06-16 14:19:46 +02:00
Fabien Potencier
25c4ff3b9c fixed toolbar setting when overridden 2010-06-15 23:22:54 +02:00
Fabien Potencier
b057ef613f [DependencyInjection] changed the extension mechanism to allow an extension to be inherit and merge from an existing configuration 2010-06-07 09:24:13 +02:00
Fabien Potencier
269651235a fixed XSD local paths 2010-05-21 16:18:29 +02:00
Jordi Boggiano
9ed3d0468e folded all curly brackets of control structures to conform to PEAR/ZF CS, part two 2010-05-09 09:15:22 +02:00
Jordi Boggiano
2684de0d8e Folded all curly brackets of control structures to conform to PEAR/ZF CS 2010-05-07 18:24:05 +02:00
Fabien Potencier
83c6d337e2 changed coding standards: indendation is now 4 spaces 2010-05-06 13:25:53 +02:00
Pascal Borreli
b5089133d2 fixed typos and phpdoc 2010-04-24 09:25:44 +02:00
Kris Wallsmith
4569ca033c [DependencyInjection] Cleaned up formatting of complex isAbsolutePath() logic. 2010-04-17 09:43:58 +02:00
Fabien Potencier
1683f46279 [DependencyInjection] reverted 2ac6faaa0b 2010-04-08 10:43:42 +02:00
Pascal Borreli
c1e357d200 Fixed @package and @subpackage phpdoc tags 2010-04-07 07:06:21 +02:00
Fabien Potencier
1816b8543e [DependencyInjection] fixed phpdoc 2010-04-06 16:31:51 +02:00
pborreli
7c628a98d2 fixed spelling typo 2010-04-06 16:31:08 +02:00
Fabien Potencier
bc29f81e8e [DependencyInjection] changed exception class in __call() 2010-04-06 16:18:25 +02:00
Pascal Borreli
12690a8e92 fixed @throws phpdoc tag 2010-04-05 11:48:31 +02:00
Bongiraud Dominique
8b45fcc7de [DependencyInjection]fix bug 2010-03-28 19:02:36 +02:00
Fabien Potencier
c69410ccde [DependencyInjection] fixed Container::getService() when the service is empty (closes #8456) 2010-03-25 14:04:48 +01:00
Fabien Potencier
17d4e1538f [DependencyInjection] store references to shared services as soon as possible to avoid circular references on legal code 2010-03-01 18:37:22 +01:00
Romain Dorgueil
3671f4a08a [DependencyInjection] made a small performance enhancement. No need to lowercase three times the same.
`strtolower` was called three times at most on the same value, and one
at least. To avoid this, let's compute it first.

Additionally, $value cast in last return clause was useless as it has
been done previously, and nothing changed $value's value.

Signed-off-by: Romain Dorgueil <romain.dorgueil@symfony-project.com>
2010-03-01 11:14:10 +01:00
Fabien Potencier
9e5718cff1 [DependencyInjection] added a way to configure extensions in plain PHP, added a fluent interface to BuilderConfiguration 2010-02-14 14:57:17 +01:00
Fabien Potencier
4735bf88a3 [DependencyInjection] fixed XSD validation local path locations for extensions 2010-02-13 10:39:35 +01:00
Fabien Potencier
5d8529740a [DependencyInjection] added the extension files in the list of loaded resources 2010-02-12 17:44:52 +01:00
sensio
6b03670de6 [YAML] renamed YAML component to Yaml 2010-02-11 14:44:20 +01:00
Fabien Potencier
0cfdf2cbda [DependencyInjection] fixed namespace problem when dumping to PHP 2010-02-09 11:35:07 +01:00
Fabien Potencier
7a26b42f19 [DependencyInjection] added annotations support in the service Definition 2010-02-09 09:45:23 +01:00
Fabien Potencier
661a1cfb5f [DependencyInjection] removed Iterator interface support from Container as there is no real-world use case 2010-02-08 18:39:11 +01:00
Fabien Potencier
ec2a3bc417 [DependencyInjection] removed the built-in extensions 2010-02-05 15:50:05 +01:00
Fabien Potencier
28554c5d08 [DependencyInjection] fixed XSD validation on Windows 2010-02-04 14:29:55 +01:00
Fabien Potencier
9a478f134a [DependencyInjection] made extension entry points configurable 2010-02-04 14:29:33 +01:00
Fabien Potencier
2a7abb8ea0 [DependencyInjection] tweaked an error message to ease debugging 2010-02-03 15:40:26 +01:00
Fabien Potencier
967eb8d953 [DependencyInjection] made a small optimization 2010-02-02 18:47:39 +01:00
Fabien Potencier
b599ac9ef6 [DependencyInjection] removed usage of realpath() to be compatible with phar 2010-02-02 18:47:28 +01:00
Fabien Potencier
3caa805c48 [DependencyInjection] fixed bug when disabling all helpers in the Templating extension 2010-02-02 13:20:22 +01:00
Fabien Potencier
38c4b29555 [DependencyInjection] fixed Builder when trying to override an alias with a definition or the other way around 2010-02-02 11:45:21 +01:00
Fabien Potencier
b0614ef0e1 [DependencyInjection] made some more tweak to the Doctrine extension 2010-02-01 17:55:40 +01:00
Fabien Potencier
b58c685508 [DependencyInjection] added a way to change the DBAL driver in the Doctrine extension 2010-02-01 05:12:12 +01:00
Fabien Potencier
9b3eec8861 [DependencyInjection] made a small speed optimization 2010-01-31 20:32:51 +01:00
Fabien Potencier
2f441df2ba [DependencyInjection] made a bunch of changes to the bundled extensions 2010-01-31 17:27:25 +01:00