Skip to content

Commit

Permalink
Merge pull request #45 from spryker-middleware/dev
Browse files Browse the repository at this point in the history
Release 1.1.0
  • Loading branch information
dereuromark authored Oct 4, 2018
2 parents d5f23d2 + 17c5851 commit aaa6c54
Show file tree
Hide file tree
Showing 250 changed files with 1,041 additions and 573 deletions.
4 changes: 2 additions & 2 deletions .license
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/
54 changes: 37 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,47 @@
language: php

sudo: false

php:
- 7.1
notifications:
email: false

env:
global:
- DEFAULT=1
sudo: required

matrix:
fast_finish: true
include:
- php: 7.2
env: PHPCS=1 DEFAULT=0
- php: "7.1"

fast_finish: true
services:
- postgresql
- redis
- rabbitmq

before_script:
- composer install --prefer-dist --no-interaction
addons:
postgresql: 9.4

script:
- sh -c "if [ '$DEFAULT' = '1' ]; then vendor/bin/codecept run; fi"
- sh -c "if [ '$PHPCS' = '1' ]; then composer cs-check ; fi"
apt:
packages:
- graphviz

notifications:
email: false
hosts:
- zed.de.spryker.test
- www.de.spryker.test

env:
global:
- APPLICATION_ENV=devtest
- APPLICATION_STORE=DE
- MODULE_DIR=module
- SHOP_DIR=current
- MODULE_NAME=process

cache:
directories:
- $SHOP_DIR/current/vendor
- $HOME/.composer/cache

before_install:
- echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

script:
- git clone -b master https://github.com/spryker-middleware/middleware-ci.git middleware-ci
- ./middleware-ci/build/travis.sh
48 changes: 31 additions & 17 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
The MIT License (MIT)
SPRYKER SYSTEMS GMBH – SPRYKER MIDDLEWARE LICENSE AGREEMENT

Copyright (c) 2016-present Spryker Systems GmbH
SPRYKER SYSTEMS GMBH, REGISTERED WITH THE COMMERCIAL REGISTER OF THE
LOWER COURT OF HAMBURG UNDER HRB 134310 (“WE” OR ”SPRYKER”) GRANTS YOU (THE
“LICENSEE”) THE RIGHT TO USE THE SPRYKER MIDDLEWARE (AS DEFINED BELOW) UNDER
THE PROVISIONS OF THIS SPRYKER MIDDLEWARE LICENSE AGREEMENT (THE “AGREEMENT”).

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The “SPRYKER MIDDLEWARE” includes any software owned and distributed by Spryker under this
Agreement. The SPRYKER MIDDLEWARE contains elements of open source components, to which
different license terms apply respectively. These open source components are needed to be installed
separately. Spryker will grant to Licensee a license based on the general Software License Agreement
of the Spryker Commerce OS, which is mandatory to be signed between Spryker and Licensee prior
to Licensee’s use of the SPRYKER MIDDLEWARE. For referrence of the terms and conditions of
Spryker’s general Software License Agreement, please get in contact with [email protected] or
[email protected].

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
Licensee shall not (i) use the SPRYKER MIDDLEWARE to set up a productive live system,
for development purposes or any other purposes; (ii) copy any part of the SPRYKER MIDDLEWARE (iii)
distribute, disclose, market, rent, lease, or transfer the SPRYKER MIDDLEWARE or act as a service
bureau with respect to the SPRYKER MIDDLEWARE; (iv) export the SPRYKER MIDDLEWARE or
install it in multiple locations; (v) disclose any confidential information provided by Spryker; (vi) modify
or make derivative works of the SPRYKER MIDDLEWARE; or (vii) allow others to make or obtain
copies of the SPRYKER MIDDLEWARE, unless it is permitted in the general Software License
Agreement, which has been concluded between Spryker and the Licensee.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
This Agreement shall be governed by the laws of Germany to the exclusion of IPR (International Law)
and the United Nations Conventionon Contracts for the International Sale of Goods (CISG). The
Parties consent to the jurisdiction of the courts in Berlin (Germany). This Agreement is not assignable
or transferable by Licensee and any attempt to do so is null and void. This Agreement and the general
Software License Agreement of the Spryker Commerce OS constitutes the entire agreement between
the Parties concerning Licensee’s use of SPRYKER MIDDLEWARE. This Agreement supersedes any
prior verbal understanding between the Parties and any Licensee purchase order or other ordering
document, regardless of whether such document is received by Spryker before or after execution of
this Agreement. This Agreement may be amended only in a writing signed by an authorized officer
of Spryker.
8 changes: 1 addition & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "spryker-middleware/process",
"description": "Process module",
"license": "MIT",
"license": "proprietary",
"minimum-stability": "dev",
"require": {
"php": ">=7.1",
Expand Down Expand Up @@ -32,12 +32,6 @@
"sort-packages": true,
"process-timeout": 600
},
"repositories": [
{
"type": "composer",
"url": "https://code.spryker.com/repo/private"
}
],
"scripts": {
"cs-check": "phpcs --standard=vendor/spryker/code-sniffer/Spryker/ruleset.xml -v src/ tests/",
"cs-fix": "phpcbf --standard=vendor/spryker/code-sniffer/Spryker/ruleset.xml -v src/ tests/"
Expand Down
3 changes: 3 additions & 0 deletions phpstan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"defaultLevel": 5
}
8 changes: 6 additions & 2 deletions src/SprykerMiddleware/Service/Process/Model/StreamService.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Service\Process\Model;
Expand All @@ -15,6 +15,8 @@ class StreamService implements StreamServiceInterface
/**
* Stream service
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\ReadStreamInterface $stream
*
* @return mixed
Expand All @@ -27,6 +29,8 @@ public function read(ReadStreamInterface $stream)
/**
* Stream service
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\WriteStreamInterface $stream
* @param array $data
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Service\Process\Model;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Service\Process;
Expand Down
7 changes: 5 additions & 2 deletions src/SprykerMiddleware/Service/Process/ProcessService.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Service\Process;
Expand All @@ -19,6 +19,8 @@ class ProcessService extends AbstractService implements ProcessServiceInterface
/**
* {@inheritdoc}
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\ReadStreamInterface $stream
*
* @return mixed
Expand All @@ -33,6 +35,7 @@ public function read(ReadStreamInterface $stream)
/**
* {@inheritdoc}
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\WriteStreamInterface $stream
* @param mixed $data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Service\Process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Service\Process;
Expand Down
4 changes: 2 additions & 2 deletions src/SprykerMiddleware/Shared/Process/ProcessConstants.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Shared\Process;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Shared\Process\Stream;

interface ReadStreamInterface extends StreamInterface
{
public const STATUS_SEEK_SUCCESS = 1;
public const STATUS_SEEK_FAIL = 0;

/**
* @return mixed
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Shared\Process\Stream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Shared\Process\Stream;

interface WriteStreamInterface extends StreamInterface
{
public const STATUS_SEEK_SUCCESS = 1;
public const STATUS_SEEK_FAIL = 0;

/**
* @param array $data
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@

<transfer name="StageResults">
<property name="stageName" type="string"/>
<property name="inputItemCount" type="string"/>
<property name="outputItemCount" type="string"/>
<property name="inputItemCount" type="int"/>
<property name="outputItemCount" type="int"/>
<property name="totalExecutionTime" type="int"/>
</transfer>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Zed\Process\Business\ArrayManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Zed\Process\Business\ArrayManager;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Zed\Process\Business\ConfigurationSnapshot;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Zed\Process\Business\ConfigurationSnapshot;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Zed\Process\Business\Exception;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerMiddleware\Zed\Process\Business\Exception;
Expand Down
Loading

0 comments on commit aaa6c54

Please sign in to comment.