Skip to content

Commit bf8a191

Browse files
Added migraiton notes
1 parent 4fd9e31 commit bf8a191

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

MIGRATION.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Migraiton
2+
3+
## 3.x
4+
5+
### PHP-DI
6+
7+
The biggist change is the support of php-di 6 and the dropped support of php-di 5. The migration is somwhat huge
8+
depending on the number of defintions. See http://php-di.org/doc/migration/6.0.html for details
9+
10+
### API
11+
12+
- All occurances of `Interop\Container\ContainerInterface` have been replaced with `\Psr\Container\ContainerInterface` so updated your usages accordingly
13+
- The types of `\de\codenamephp\platform\di\Container::__construct` have changed so if you instantiate the container yourself (you shouldn't, that's what the
14+
builder is for) you have to update the type of the first and 3rd parameter
15+
- All parameters of `\de\codenamephp\platform\di\Container::__construct` are now optoinal so if you just passed them because you had to, remove them
16+
17+
### PHP
18+
19+
PHP7 is now required for php-di 6 and type hints

0 commit comments

Comments
 (0)