Skip to content

Commit

Permalink
feat: also expose as module
Browse files Browse the repository at this point in the history
Which will allow usage of the factories in laminas-mvc.

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
  • Loading branch information
weierophinney committed Apr 27, 2020
1 parent d3dc0df commit e6b3489
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"dev-release-1.8": "1.8.x-dev"
},
"laminas": {
"config-provider": "Laminas\\Diactoros\\ConfigProvider"
"config-provider": "Laminas\\Diactoros\\ConfigProvider",
"module": "Laminas\\Diactoros"
}
},
"require": {
Expand Down
21 changes: 21 additions & 0 deletions src/Module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

/**
* @see https://github.com/laminas/laminas-diactoros for the canonical source repository
* @copyright https://github.com/laminas/laminas-diactoros/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-diactoros/blob/master/LICENSE.md New BSD License
*/

declare(strict_types=1);

namespace Laminas\Diactoros;

class Module
{
public function getConfig(): array
{
return [
'service_manager' => (new ConfigProvider())->getDependencies(),
];
}
}

0 comments on commit e6b3489

Please # to comment.