Skip to content

Commit

Permalink
add Laminas\Diactoros\Config\Provider to config if exists
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
  • Loading branch information
samsonasik committed Apr 27, 2020
1 parent 1ec0706 commit bbdb785
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
\Mezzio\ConfigProvider::class,
\Mezzio\Router\ConfigProvider::class,

class_exists(\Laminas\Diactoros\ConfigProvider::class)
? \Laminas\Diactoros\ConfigProvider::class
: function(){ return[]; },

// Swoole config to overwrite some services (if installed)
class_exists(\Mezzio\Swoole\ConfigProvider::class)
? \Mezzio\Swoole\ConfigProvider::class
Expand Down

0 comments on commit bbdb785

Please sign in to comment.