diff --git a/docs/configuration.md b/docs/configuration.md index 5286366dcc25eb86d9fb71b097300407960ba8cb..c9eb0674ced0a0accef65bdad2234cc44a97c4b0 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -37,6 +37,7 @@ definitions. Refer to [php-di documentation](https://php-di.org/doc/definitions. information on such file content. > Warning +> > If you are using _shortcut_ functions from `php-di/php-di` (e.g. `DI\autowire`, `DI\create`), you > must load them first. Add `require __DIR__ . '/vendor_prefixed/php-di/php-di/src/functions.php';` > to your plugin file. diff --git a/docs/prefixing.md b/docs/prefixing.md index acceec01bf2c38ddc30496fcce57e659e06edaaa..5af1bbde394a3ffb7590b36c516cfad62b6aa1b8 100644 --- a/docs/prefixing.md +++ b/docs/prefixing.md @@ -8,6 +8,7 @@ introduce following configuration to your `scoper.inc.php` file. - Include `php-di` and it's dependencies in finders > Note +> > Pay attention to actual installed `php-di/php-di` version, as it's dependencies may change, > requiring to update `scoper.inc.php` accordingly.