-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-2663: Added CustomerExtension module
- Loading branch information
0 parents
commit f46d1bc
Showing
10 changed files
with
207 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
coverage_clover: tests/_output/coverage.xml | ||
json_path: tests/_output/coveralls-upload.json | ||
service_name: travis-ci |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* eol=lf | ||
* text=auto | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary | ||
*.jpg binary | ||
*.gif binary | ||
*.jpeg binary | ||
*.zip binary | ||
*.phar binary | ||
*.ttf binary | ||
*.woff binary | ||
*.woff2 binary | ||
*.eot binary | ||
*.ico binary | ||
*.mo binary | ||
*.pdf binary | ||
*.xsd binary | ||
*.ts binary | ||
*.exe binary | ||
|
||
# Remove files for archives generated using `git archive` | ||
codeception.yml export-ignore | ||
dependency.json export-ignore | ||
.coveralls.yml export-ignore | ||
.travis.yml export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# IDEs | ||
/.idea | ||
/.project | ||
/nbproject | ||
/.buildpath | ||
/.settings | ||
*.sublime-* | ||
*.AppleDouble | ||
*.AppleDB | ||
*.AppleDesktop | ||
|
||
# OS | ||
.DS_Store | ||
|
||
/tests/_output/* | ||
!/tests/_output/.gitkeep | ||
phpstan.neon | ||
phpstan.json |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
language: php | ||
|
||
php: | ||
- 7.1 | ||
- 7.2 | ||
|
||
cache: | ||
directories: | ||
- vendor | ||
- $HOME/.composer/cache | ||
|
||
env: | ||
global: | ||
- APPLICATION_ENV=development | ||
- APPLICATION_STORE=DE | ||
|
||
install: | ||
- composer install --no-interaction --prefer-dist | ||
|
||
script: | ||
- vendor/bin/phpcs src --standard=vendor/spryker/code-sniffer/Spryker/ruleset.xml | ||
- vendor/bin/codecept run --env isolated --coverage-xml | ||
|
||
after_success: | ||
- vendor/bin/coveralls -vvv | ||
|
||
notifications: | ||
email: false |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# CustomerExtension Changelog | ||
|
||
[Release Changelog](https://github.com/spryker/customer-extension/releases) |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
SPRYKER SYSTEMS GMBH EVALUATION LICENSE AGREEMENT | ||
|
||
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 SOFTWARE (AS DEFINED BELOW) | ||
UNDER THE PROVISIONS OF THIS EVALUATION LICENSE AGREEMENT (THE “AGREEMENT”). | ||
|
||
The “Software” includes any software owned and distributed by Spryker under this Agreement. The Software | ||
contains elements of open source components, to which different license terms apply respectively. | ||
These open source components are needed to be installed separately. | ||
|
||
Spryker grants to Licensee, during the 45-calendar-day period (the “Evaluation Period”) following the download of the Software, | ||
the nontransferable, nonexclusive limited, free of charge license to permit Licensee’s employees to internally use the Software | ||
to test and evaluate the Software in connection with potentially purchasing non-evaluation licenses to the Software. | ||
|
||
Licensee shall not (i) use the Software to set up a productive live system, for development purposes or any other purposes apart | ||
from evaluating the Software; (ii) copy any part of the Software except to make one copy for back-up purposes; (iii) distribute, | ||
disclose, market, rent, lease, or transfer the Software or act as a service bureau with respect to the Software; (iv) export the | ||
Software or install it in multiple locations; (v) disclose any confidential information provided by Spryker; (vi) modify or make | ||
derivative works of the Software; or (vii) allow others to make or obtain copies of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED “AS-IS” AND WITHOUT WARRANTY OF ANY KIND. SPRYKER DISCLAIMS ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING | ||
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, TITLE, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE. SPRYKER WILL NOT | ||
BE LIABLE FOR ANY DAMAGES ASSOCIATED WITH THE SOFTWARE, INCLUDING WITHOUT LIMITATION ORDINARY, INCIDENTAL, INDIRECT, OR CONSEQUENTIAL | ||
DAMAGES OF ANY KIND, INCLUDING BUT NOT LIMITED TO DAMAGES RELATING TO LOST DATA OR LOST PROFITS, EVEN IF SPRYKER HAS BEEN ADVISED OF | ||
THE POSSIBILITY OF SUCH DAMAGES. | ||
|
||
Licensee's license to use the Software shall terminate on the earlier of (i) the expiration of the Evaluation Period, or (ii) the date | ||
both parties enter into a definitive agreement for the provision by Spryker to Licensee of a non-evaluation license to the Software. | ||
Upon termination of the license as provided above, Licensee shall promptly destroy the Software and any back-up copy of the Software | ||
made during the Evaluation Period if Spryker and the Licensee have not agreed a non-evaluation license to the Software. | ||
|
||
This Agreement shall be governed by the laws of Germany to the exclusion of IPR (International Law) and the United Nations Convention | ||
on 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 constitutes the entire agreement between the parties concerning Licensee’s use of the Software. 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. |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# CustomerExtension Module | ||
[![Build Status](https://travis-ci.org/spryker/customer-extension.svg)](https://travis-ci.org/spryker/customer-extension) | ||
[![Coverage Status](https://coveralls.io/repos/github/spryker/customer-extension/badge.svg)](https://coveralls.io/github/spryker/customer-extension) | ||
|
||
CustomerExtension modules provides plugin interfaces used by Customer module. | ||
|
||
## Installation | ||
|
||
``` | ||
composer require spryker/customer-extension | ||
``` | ||
|
||
## Documentation | ||
|
||
[Spryker Documentation](https://academy.spryker.com/developing_with_spryker/module_guide/modules.html) |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace: CustomerExtension | ||
actor: Tester | ||
paths: | ||
tests: tests | ||
log: tests/_output | ||
data: tests/_data | ||
support: tests/_support | ||
envs: tests/_envs | ||
settings: | ||
bootstrap: _bootstrap.php | ||
suite_class: \PHPUnit_Framework_TestSuite | ||
colors: true | ||
memory_limit: 1024M | ||
log: true | ||
coverage: | ||
enabled: true | ||
whitelist: | ||
include: | ||
- 'src/*.php' |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "spryker/customer-extension", | ||
"description": "CustomerExtension module", | ||
"license": "proprietary", | ||
"require": { | ||
"php": ">=7.1" | ||
}, | ||
"require-dev": { | ||
"spryker/code-sniffer": "*", | ||
"spryker/testify": "*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Spryker\\": "src/Spryker/" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.0.x-dev" | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...ryker/Zed/CustomerExtension/Dependency/Plugin/PostCustomerRegistrationPluginInterface.php
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved. | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
namespace Spryker\Zed\CustomerExtension\Dependency\Plugin; | ||
|
||
use Generated\Shared\Transfer\CustomerTransfer; | ||
|
||
interface PostCustomerRegistrationPluginInterface | ||
{ | ||
/** | ||
* This plugin allows to execute additional actions after customer registration. | ||
* | ||
* @api | ||
* | ||
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer | ||
* | ||
* @return void | ||
*/ | ||
public function execute(CustomerTransfer $customerTransfer): void; | ||
} |