Skip to content

Commit

Permalink
Merge pull request #80 from prooph/develop
Browse files Browse the repository at this point in the history
merge changes from develop
  • Loading branch information
sandrokeil committed Jul 2, 2016
2 parents 7ae3cd1 + fa02858 commit 6884117
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 48 deletions.
26 changes: 13 additions & 13 deletions composer.json
Expand Up @@ -33,31 +33,31 @@
"require": {
"php": "^5.5 || ^7.0",
"aura/router" : "^2.3",
"doctrine/dbal": "^2.5",
"doctrine/migrations": "^1.0",
"doctrine/dbal": "^2.5.4",
"doctrine/migrations": "^1.4.1",
"nicolopignatelli/valueobjects": "^3.0",
"prooph/event-sourcing" : "^4.0",
"prooph/event-store" : "^6.0",
"prooph/event-store" : "^6.3",
"prooph/event-store-bus-bridge" : "^2.0",
"prooph/psr7-middleware": "^0.1",
"prooph/service-bus" : "^5.0",
"prooph/psr7-middleware": "^0.3",
"prooph/service-bus" : "^5.1",
"roave/security-advisories": "dev-master",
"sandrokeil/interop-config": "^0.3.1",
"sandrokeil/interop-config": "^1.0",
"zendframework/zend-config": "^2.6",
"zendframework/zend-expressive" : "^1.0",
"zendframework/zend-expressive-aurarouter": "^1.0",
"zendframework/zend-expressive-helpers": "^2.0",
"zendframework/zend-expressive-zendviewrenderer": "^1.0.1",
"zendframework/zend-filter": "^2.6",
"zendframework/zend-servicemanager" : "^2.7.5 || ^3.0.3",
"zendframework/zend-stdlib": "^2.7",
"zendframework/zend-mail": "^2.6"
"zendframework/zend-expressive-zendviewrenderer": "^1.1.0",
"zendframework/zend-filter": "^2.7.1",
"zendframework/zend-servicemanager" : "^3.0.3",
"zendframework/zend-stdlib": "^3.0.1",
"zendframework/zend-mail": "^2.7.1"
},
"require-dev" : {
"fabpot/php-cs-fixer": "^1.9.3",
"fabpot/php-cs-fixer": "^1.11.4",
"filp/whoops": "^1.1",
"phpunit/phpunit": "^4.8 || ^5.2",
"proophsoftware/prooph-cli": "^0.1.2",
"proophsoftware/prooph-cli": "^0.2.0",
"symfony/stopwatch": "^2.7",
"satooshi/php-coveralls": "^1.0"
},
Expand Down
1 change: 1 addition & 0 deletions config/autoload/prooph_dependencies.global.php
Expand Up @@ -46,6 +46,7 @@
//prooph/event-store-bus-bridge set up
\Prooph\EventStoreBusBridge\TransactionManager::class => \Prooph\EventStoreBusBridge\Container\TransactionManagerFactory::class,
\Prooph\EventStoreBusBridge\EventPublisher::class => \Prooph\EventStoreBusBridge\Container\EventPublisherFactory::class,
\Prooph\Cli\Console\Helper\ClassInfo::class => \Prooph\ProophessorDo\Container\Console\Psr4ClassInfoFactory::class,
],
],
];
12 changes: 2 additions & 10 deletions src/Container/App/Mail/SendTodoReminderMailSubscriberFactory.php
Expand Up @@ -28,17 +28,9 @@ final class SendTodoReminderMailSubscriberFactory implements RequiresConfig, Req
/**
* @inheritdoc
*/
public function vendorName()
public function dimensions()
{
return 'proophessor-do';
}

/**
* @inheritdoc
*/
public function packageName()
{
return 'mail';
return ['proophessor-do', 'mail'];
}

/**
Expand Down
26 changes: 26 additions & 0 deletions src/Container/Console/Psr4ClassInfoFactory.php
@@ -0,0 +1,26 @@
<?php

namespace Prooph\ProophessorDo\Container\Console;

use Interop\Container\ContainerInterface;
use Prooph\Cli\Console\Helper\Psr4Info;

class Psr4ClassInfoFactory
{
public function __invoke(ContainerInterface $container)
{
$docblock = <<<'PROOPH'
This file is part of prooph/proophessor.
(c) 2014-2016 prooph software GmbH <contact@prooph.de>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
PROOPH;

return new Psr4Info(
'src',
'Prooph\\ProophessorDo\\',
$docblock
);
}
}
30 changes: 5 additions & 25 deletions src/Container/Infrastructure/DoctrineDbalConnectionFactory.php
Expand Up @@ -12,7 +12,7 @@

use Doctrine\DBAL\DriverManager;
use Interop\Config\ConfigurationTrait;
use Interop\Config\RequiresContainerId;
use Interop\Config\RequiresConfigId;
use Interop\Config\RequiresMandatoryOptions;
use Interop\Container\ContainerInterface;

Expand All @@ -21,7 +21,7 @@
*
* @package src\Infrastructure\Container
*/
final class DoctrineDbalConnectionFactory implements RequiresContainerId, RequiresMandatoryOptions
final class DoctrineDbalConnectionFactory implements RequiresConfigId, RequiresMandatoryOptions
{
use ConfigurationTrait;

Expand All @@ -32,7 +32,7 @@ final class DoctrineDbalConnectionFactory implements RequiresContainerId, Requir
*/
public function __invoke(ContainerInterface $container)
{
$options = $this->options($container->get('config'));
$options = $this->options($container->get('config'), 'default');

return DriverManager::getConnection($options);
}
Expand All @@ -42,29 +42,9 @@ public function __invoke(ContainerInterface $container)
*
* @return string
*/
public function vendorName()
public function dimensions()
{
return 'doctrine';
}

/**
* Returns the package name
*
* @return string
*/
public function packageName()
{
return 'connection';
}

/**
* Returns the container identifier
*
* @return string
*/
public function containerId()
{
return 'default';
return ['doctrine', 'connection'];
}

/**
Expand Down

0 comments on commit 6884117

Please sign in to comment.