-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
92 changed files
with
2,729 additions
and
2,820 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ nbproject | |
.buildpath | ||
.DS_Store | ||
.idea | ||
.php_cs.cache | ||
.project | ||
.settings | ||
vendor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,10 @@ | ||
<?php | ||
$finder = Symfony\CS\Finder\DefaultFinder::create() | ||
->in('src') | ||
->in('config') | ||
->in('tests') | ||
->in('examples'); | ||
$config = Symfony\CS\Config\Config::create(); | ||
$config->level(null); | ||
$config->fixers( | ||
array( | ||
'braces', | ||
'duplicate_semicolon', | ||
'elseif', | ||
'empty_return', | ||
'encoding', | ||
'eof_ending', | ||
'function_call_space', | ||
'function_declaration', | ||
'indentation', | ||
'join_function', | ||
'line_after_namespace', | ||
'linefeed', | ||
'lowercase_keywords', | ||
'parenthesis', | ||
'multiple_use', | ||
'method_argument_space', | ||
'object_operator', | ||
'php_closing_tag', | ||
'remove_lines_between_uses', | ||
'short_array_syntax', | ||
'short_tag', | ||
'standardize_not_equal', | ||
'trailing_spaces', | ||
'unused_use', | ||
'visibility', | ||
'whitespacy_lines', | ||
) | ||
); | ||
$config->finder($finder); | ||
|
||
$config = new Prooph\CS\Config\Prooph(); | ||
$config->getFinder()->in(__DIR__); | ||
|
||
$cacheDir = getenv('TRAVIS') ? getenv('HOME') . '/.php-cs-fixer' : __DIR__; | ||
|
||
$config->setCacheFile($cacheDir . '/.php_cs.cache'); | ||
|
||
return $config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
Copyright (c) 2013, Alexander Miertsch [email protected] | ||
Copyright (c) 2013-2017, prooph software GmbH | ||
Copyright (c) 2015-2017, Sascha-Oliver Prolic | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without modification, | ||
are permitted provided that the following conditions are met: | ||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
* Neither the name of Alexander Miertsch nor the names of its | ||
contributors may be used to endorse or promote products derived from this | ||
software without specific prior written permission. | ||
* Neither the name of the prooph software GmbH nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
<?php | ||
/** | ||
* This file is part of the prooph/service-bus. | ||
* (c) 2014-2016 prooph software GmbH <[email protected]> | ||
* (c) 2015-2016 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2017 prooph software GmbH <[email protected]> | ||
* (c) 2015-2017 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* This file contains default configuration for prooph/service-bus | ||
* It is meant to be used together with at least one of the container-aware factories | ||
|
@@ -40,7 +42,7 @@ | |
//the factory will pull the producer from the container and set up an AsyncSwitchMessageRouter | ||
//using the producer AND decorating the actual configured router | ||
//'async_switch' => 'container_id_of_async_message_producer', | ||
] | ||
], | ||
], | ||
//This section will be used by Prooph\ServiceBus\Container\EventBusFactory | ||
'event_bus' => [ | ||
|
@@ -61,7 +63,7 @@ | |
//the factory will pull the producer from the container and set up an AsyncSwitchMessageRouter | ||
//using the producer AND decorating the actual configured router | ||
//'async_switch' => 'container_id_of_async_message_producer', | ||
] | ||
], | ||
], | ||
//This section will be used by Prooph\ServiceBus\Container\QueryBusFactory | ||
'query_bus' => [ | ||
|
@@ -82,7 +84,7 @@ | |
//the factory will pull the producer from the container and set up an AsyncSwitchMessageRouter | ||
//using the producer AND decorating the actual configured router | ||
//'async_switch' => 'container_id_of_async_message_producer', | ||
] | ||
], | ||
], | ||
], //EO service_bus | ||
], //EO prooph | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
<?php | ||
/** | ||
* This file is part of the prooph/service-bus. | ||
* (c) 2014-2016 prooph software GmbH <[email protected]> | ||
* (c) 2015-2016 Sascha-Oliver Prolic <[email protected]> | ||
* (c) 2014-2017 prooph software GmbH <[email protected]> | ||
* (c) 2015-2017 Sascha-Oliver Prolic <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Prooph\ServiceBus; | ||
|
||
return [ | ||
|
@@ -21,11 +23,11 @@ | |
// to expose message name in UnauthorizedException | ||
Plugin\Guard\RouteGuard::class => [ | ||
Container\Plugin\Guard\RouteGuardFactory::class, | ||
'exposeMessageName' | ||
'exposeMessageName', | ||
], | ||
Plugin\Guard\FinalizeGuard::class => [ | ||
Container\Plugin\Guard\FinalizeGuardFactory::class, | ||
'exposeMessageName' | ||
'exposeMessageName', | ||
], | ||
] | ||
], | ||
]; |
Oops, something went wrong.