Installation

Requirements

  • PHP 8.3, 8.4, 8.5 or 8.6
  • A PSR-11 container (psr/container ^1.1 || ^2.0), usually laminas/laminas-servicemanager
  • doctrine/orm ^2.9 || ^3.0, installed by your application, only if you use AttributedRepositoryFactory

Install

Install dotkernel/dot-dependency-injection by executing the following Composer command:

composer require dotkernel/dot-dependency-injection

doctrine/orm is not installed with this package. If you use AttributedRepositoryFactory, require it in your application:

composer require doctrine/orm

Composer asks to move the ORM requirement

If your application lists doctrine/orm under require-dev, Composer asks to move it to require. Answer yes. AttributedRepositoryFactory runs in production, and composer install --no-dev does not install require-dev packages. With --no-interaction, Composer moves the entry to require without asking. If your application already lists doctrine/orm under require, you do not have to do anything.

Upgrading from 1.x? See Upgrading from 1.x.

On this page