Skip to content

Commit 077c6ce

Browse files
authored
Merge pull request #77 from sandrokeil/feature/psr4-class-info
update to prooph-cli 0.2.0 and add Psr4ClassInfo factory
2 parents 7511cc6 + 59374c7 commit 077c6ce

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"fabpot/php-cs-fixer": "^1.9.3",
5858
"filp/whoops": "^1.1",
5959
"phpunit/phpunit": "^4.8 || ^5.2",
60-
"proophsoftware/prooph-cli": "^0.1.2",
60+
"proophsoftware/prooph-cli": "^0.2.0",
6161
"symfony/stopwatch": "^2.7",
6262
"satooshi/php-coveralls": "^1.0"
6363
},

config/autoload/prooph_dependencies.global.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
//prooph/event-store-bus-bridge set up
4747
\Prooph\EventStoreBusBridge\TransactionManager::class => \Prooph\EventStoreBusBridge\Container\TransactionManagerFactory::class,
4848
\Prooph\EventStoreBusBridge\EventPublisher::class => \Prooph\EventStoreBusBridge\Container\EventPublisherFactory::class,
49+
\Prooph\Cli\Console\Helper\ClassInfo::class => \Prooph\ProophessorDo\Container\Console\Psr4ClassInfoFactory::class,
4950
],
5051
],
5152
];
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace Prooph\ProophessorDo\Container\Console;
4+
5+
use Interop\Container\ContainerInterface;
6+
use Prooph\Cli\Console\Helper\Psr4Info;
7+
8+
class Psr4ClassInfoFactory
9+
{
10+
public function __invoke(ContainerInterface $container)
11+
{
12+
$docblock = <<<'PROOPH'
13+
This file is part of prooph/proophessor.
14+
(c) 2014-2016 prooph software GmbH <[email protected]>
15+
16+
For the full copyright and license information, please view the LICENSE
17+
file that was distributed with this source code.
18+
PROOPH;
19+
20+
return new Psr4Info(
21+
'src',
22+
'Prooph\\ProophessorDo\\',
23+
$docblock
24+
);
25+
}
26+
}

0 commit comments

Comments
 (0)