Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelamkoff authored Jul 14, 2020
1 parent a945ddb commit f6a16b5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,24 @@
namespace Bermuda\Pipeline;


use Psr\Container\ContainerInterface;

final class ConfigProvider
{
public function __invoke(): array
{
return ['dependencies' => [
'aliases' => [PipelineInterface::class => PipelineFactoryInterface::class],
'invokables' => [PipelineFactoryInterface::class => PipelineFactory::class]
'factories' => [
PipelineInterface::class => function(ContainerInterface $c)
{
return ($c->get(PipelineFactoryInterface::class))->make();
},

PipelineFactoryInterface::class => function()
{
return new PipelineFactory();
}
]
]
];
}
Expand Down

0 comments on commit f6a16b5

Please sign in to comment.