Rechercher "configuration" - page 1 sur 3

  1. Strategy Dependency Injection - RedCat PHP Framework #simpli ...
    https://redcatphp.com/strategy-dependency-injection#simplify
    4. Basic usage Why is Strategy (and its Dice parent) different? A lot of DICs require that you provide some configuration for each possible component in order just to work. Strategy takes a convention-over-configuration approach and uses type hinting to infer what dependencies an object has. As such, no configuration is required for basic object graphs.
  2. Strategy Dependency Injection - RedCat PHP Framework #get-st ...
    https://redcatphp.com/strategy-dependency-injection#get-star ...
    5.1 Using rules to configure shared dependencies The method of defining shared objects is by Rules. See the section on Rules below for more information. They are used to configure the container. Here's how a shared object is defined using a rule. Strategy accepts a rule for a given class an applies it each time it creates an...
  3. Strategy Dependency Injection - RedCat PHP Framework #di-ins ...
    https://redcatphp.com/strategy-dependency-injection#di-insta ...
    6. Configuring the container with Rules In order to allow complete flexibility, the container can be fully configured using rules provided by associative arrays rules are passed to the container using the addRule method: $rule = ['name' => 'value'];$di->addRule('rulename', $rule);         By default, rule names match class names so, to apply a rule...
  4. Strategy Dependency Injection - RedCat PHP Framework #config ...
    https://redcatphp.com/strategy-dependency-injection#config-r ...
    ...is Named instances. Named instances allow different configurations of dependencies to be accessible within the application. This is useful when not all your application logic needs to use the same configuration of a dependency. For example, if you need to copy data from one database to another you'd need two database objects configured differently. With named instances this is...
  5. Strategy Dependency Injection - RedCat PHP Framework #simpli ...
    https://fr.redcatphp.com/strategy-dependency-injection#simpl ...
    4. Basic usage Why is Strategy (and its Dice parent) different? A lot of DICs require that you provide some configuration for each possible component in order just to work. Strategy takes a convention-over-configuration approach and uses type hinting to infer what dependencies an object has. As such, no configuration is required for basic object graphs.
  6. Strategy Dependency Injection - RedCat PHP Framework #get-st ...
    https://fr.redcatphp.com/strategy-dependency-injection#get-s ...
    5.1 Using rules to configure shared dependencies The method of defining shared objects is by Rules. See the section on Rules below for more information. They are used to configure the container. Here's how a shared object is defined using a rule. Strategy accepts a rule for a given class an applies it each time it creates an...
  7. Strategy Dependency Injection - RedCat PHP Framework #di-ins ...
    https://fr.redcatphp.com/strategy-dependency-injection#di-in ...
    6. Configuring the container with Rules In order to allow complete flexibility, the container can be fully configured using rules provided by associative arrays rules are passed to the container using the addRule method: $rule = ['name' => 'value'];$di->addRule('rulename', $rule);         By default, rule names match class names so, to apply a rule...
  8. Strategy Dependency Injection - RedCat PHP Framework #config ...
    https://fr.redcatphp.com/strategy-dependency-injection#confi ...
    ...is Named instances. Named instances allow different configurations of dependencies to be accessible within the application. This is useful when not all your application logic needs to use the same configuration of a dependency. For example, if you need to copy data from one database to another you'd need two database objects configured differently. With named instances this is...
  9. Why another framework ? RedCat PHP Framework
    https://redcatphp.com/why-another-framework
    ...framework ? What's make RedCat's singularity ? I didn't want to choose between scalability, based on good practices, and rapid deployment, based on pragmatism. The one based on full configuration, flexible but tedious, and the other based on strict conventions, efficient but arbitrary limited. All frameworks I've seen can be classed in one of these two categories. However...
  10. Pourquoi un framework de plus ? RedCat PHP Framework
    https://fr.redcatphp.com/pourquoi-un-framework-de-plus
    ...la singularité de RedCat ? Je ne voulais pas choisir entre l'évolutivité, basée sur les bonnes pratiques, et le déploiement rapide, basé sur le pragmatisme. L'une basée sur une configuration intégrale, flexible mais fastidieuse, et l'autre basé sur des conventions strictes, efficaces mais arbitrairement limitées. Tous les frameworks que j'ai vus peuvent êtres classés dans une de...
  11. Strategy Dependency Injection - RedCat PHP Framework
    https://redcatphp.com/strategy-dependency-injection
    ...code Improve maintainability Improve scalability Be Wise , Get Started Di instanciation, Classes instanciation Basic usage Object graph creation Provistrategy additional arguments to constructors , Shared dependencies Using rules to configure shared dependencies, Configuring the container with rules Substitutions, Inheritance Constructor Parameters, Setter injection (mutators) Default rules, Named instances Sharing instances across a tree, Rule cascastrategy Arbitrary Data Simple variable definition Anonymous...
  12. Strategy Dependency Injection - RedCat PHP Framework #cascas ...
    https://redcatphp.com/strategy-dependency-injection#cascastr ...
    ...gt;c = $c;        $this->d = $d;    }}                 Here, B could be any subclass of B configured in any way possible. This allows for a far greater Separation of Concerns. A never has to worry about configuring its dependencies, they're given to it in a state that is ready to use. By giving less responsibility...
  13. Strategy Dependency Injection - RedCat PHP Framework #config ...
    https://redcatphp.com/strategy-dependency-injection#config-r ...
    6.4 Setter injection Objects often need to be configured in ways that their constructor does not account for. For example: PDO::setAttribute() may need to be called to further configure PDO even after it's been constructed. To account fo this, Strategy Rules can supply a list of methods to call on an object after it's been constructed...
  14. Strategy Dependency Injection - RedCat PHP Framework #protec ...
    https://redcatphp.com/strategy-dependency-injection#protecti ...
    ...this API to automatically interchange constructor params or setters params by name with arbitrary variables setted in Strategy (see arbitrary data). It's a convenient way to decouple somes common configuration variables from classes rules definitions. By prefixing an associative or numeric key of array with "$", the value will be used to point the variable that have to be used...
  15. Strategy Dependency Injection - RedCat PHP Framework
    https://fr.redcatphp.com/strategy-dependency-injection
    ...code Improve maintainability Improve scalability Be Wise , Get Started Di instanciation, Classes instanciation Basic usage Object graph creation Provistrategy additional arguments to constructors , Shared dependencies Using rules to configure shared dependencies, Configuring the container with rules Substitutions, Inheritance Constructor Parameters, Setter injection (mutators) Default rules, Named instances Sharing instances across a tree, Rule cascastrategy Arbitrary Data Simple variable definition Anonymous...
Retour à l'accueil