Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: rmp-up/wp-di

Tags

0.8.0

Toggle 0.8.0's commit message
WordPress Dependency Injection now offers a Factory for some Provider…

… and (more important) a centralized container that can be reused among all plugins/themes:


```php
<?php

RmpUp\WpDi\WpDi::load( require 'services.php' );

$container = RmpUp\WpDi\WpDi::pimple();
```

Reusing an already existing container and the existing provider (by using the `::load()`-Method) greatly enhances the performance.

Other changes:

* Features
  * Preload core files using "preload.php" (esp. for the PHP 7.4 feature) to increase performance.
  * Loader: The static WpDi::loader() helps to fasten up loading
  * Introduced a factory for easier provider creation
* Bugfixes
  * An argument-string can now have a leading "@" char without the service needed to exist.
* Backward incompatibility / deprecations
  * Get rid of ServiceProviderInterface to switch to a more tree-like provider/parser.
  * Drop Provider::register methods to no decouple PSR11 and pimple for more flexibility.
  * Template references now must have a percentage sign "%" as pre- and suffix
  * Removed all sanitizer which need some rework towards a layer that can be cached.
  * Replaced LazyService with LazyPimple to decouple from PSR11 for more flexibility.
  * Dropped various internal deprecated structures.
* Quality assuarance
  * Performance profiling using xhprof
  * Fixed some IDE warnings like typo and inspections.

0.8.0-rc.2

Toggle 0.8.0-rc.2's commit message
dev: Added PHP8 testing container

0.8.0-RC1

Toggle 0.8.0-RC1's commit message
Yaml: Escape leading At-Char

Some string-values want to have an At-Char in the beginning.
This would lead to a service
and an exception when this service does not exist.
To allow an At-Char for String-Values we consider "@@" as escaping
in the beginning of the string.

0.7.5+FC

Toggle 0.7.5+FC's commit message
fc: Marking forward-incompatible (from 0.7 to 0.8)

We are marking incompatible API usages to help developer
upgrade to the next version.

0.7.5-FC

Toggle 0.7.5-FC's commit message
fc: Marking forward-incompatible (from 0.7 to 0.8)

We are marking incompatible API usages to help developer
upgrade to the next version.

0.7.4

Toggle 0.7.4's commit message
release: 0.7.4

* phpcs: Conditions more explicit
* qa: Fixed warnings as reported by the IDE
* qa: Fixed some typos
* doc: Enhanced documentation of new features
* qa: Re-enable code coverage monitoring
* qa: Updated to phpStan 0.12 to enhance code over time

0.7.3

Toggle 0.7.3's commit message
hotfix: Register CLI commands only when in CLI

CLI-Commands are registered using WP_CLI.
It may happen that WP_CLI is not installed
or activated when the user is not in the shell.
In such cases we bypass the addition of CLI-Commands.

0.7.2

Toggle 0.7.2's commit message
release: 0.7.2

* phpcs.xml.dist: Disallowing inline IF-Statements

0.7.1

Toggle 0.7.1's commit message
release: 0.7.1

* Removed/bump year
* Updated/fixed documentation
* Rebase on master

0.7.0

Toggle 0.7.0's commit message
release: 0.7.0

* Provider: Sanitizer still needed as not everything is a compiler
* Templates: allow non-array definitions
  (string / direct path to template)