-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from spryker-eco/dev
Release 1.0.0
- Loading branch information
Showing
157 changed files
with
11,065 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,4 @@ | ||
/** | ||
* MIT License | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ |
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 @@ | ||
build: | ||
dependencies: | ||
before: | ||
- composer config repositories.spryker composer https://code.spryker.com/repo/private | ||
environment: | ||
php: | ||
version: 7.1 | ||
|
||
checks: | ||
php: | ||
code_rating: true | ||
|
||
filter: | ||
excluded_paths: | ||
- config/* | ||
- tests/* | ||
- src/Generated/* | ||
- src/Pyz/* |
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,47 @@ | ||
language: php | ||
|
||
notifications: | ||
email: false | ||
|
||
sudo: required | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 7.1 | ||
|
||
services: | ||
- postgresql | ||
- redis | ||
- rabbitmq | ||
|
||
addons: | ||
postgresql: 9.4 | ||
|
||
apt: | ||
packages: | ||
- graphviz | ||
|
||
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=akeneo-pim-middleware-connector | ||
|
||
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-eco/eco-ci.git ecoci | ||
- ./ecoci/build/travis.sh |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 SPRYKER SYSTEMS GMBH | ||
|
||
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 above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
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 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace: AkeneoPimMiddlewareConnector | ||
|
||
include: | ||
- tests/SprykerEcoTest/Zed/AkeneoPimMiddlewareConnector | ||
|
||
paths: | ||
tests: tests | ||
support: . | ||
log: tests/_output | ||
data: tests/_data | ||
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/*' |
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,32 @@ | ||
{ | ||
"name": "spryker-eco/akeneo-pim-middleware-connector", | ||
"description": "Akeneo PIM to Middleware connector Module", | ||
"require": { | ||
"php": ">=7.1", | ||
"spryker/kernel": "^3.0.0", | ||
"spryker/locale": "^3.0.0", | ||
"spryker/tax": "^5.0.0", | ||
"spryker-eco/akeneo-pim": "^1.0.0", | ||
"spryker-middleware/process": "^1.0.0", | ||
"spryker/data-import": "^1.0.0" | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "git", | ||
"url": "[email protected]:spryker-eco/akeneo-pim.git" | ||
} | ||
], | ||
"autoload": { | ||
"psr-0": { | ||
"SprykerEco": "src/", | ||
"Function": "tests/" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"autoload-dev": { | ||
"psr-0": { | ||
"Functional": "tests/", | ||
"Unit": "tests/" | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/SprykerEco/Shared/AkeneoPimMiddlewareConnector/AkeneoPimMiddlewareConnectorConstants.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,20 @@ | ||
<?php | ||
|
||
/** | ||
* MIT License | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
namespace SprykerEco\Shared\AkeneoPimMiddlewareConnector; | ||
|
||
interface AkeneoPimMiddlewareConnectorConstants | ||
{ | ||
public const LOCALE_MAP_FILE_PATH = 'AKENEOPIMMIDDLEWARECONNECTOR:LOCALE_MAP_FILE_PATH'; | ||
public const ATTRIBUTE_MAP_FILE_PATH = 'AKENEOPIMMIDDLEWARECONNECTOR:ATTRIBUTE_MAP_FILE_PATH'; | ||
public const SUPER_ATTRIBUTE_MAP_FILE_PATH = 'AKENEOPIMMIDDLEWARECONNECTOR:SUPER_ATTRIBUTE_MAP_FILE_PATH'; | ||
public const FK_CATEGORY_TEMPLATE = 'AKENEOPIMMIDDLEWARECONNECTOR:FK_CATEGORY_TEMPLATE'; | ||
public const TAX_SET = 'AKENEOPIMMIDDLEWARECONNECTOR:TAX_SET'; | ||
public const LOCALES_FOR_IMPORT = 'AKENEOPIMMIDDLEWARECONNECTOR:LOCALES_FOR_IMPORT'; | ||
public const LOCALES_TO_PRICE_MAP = 'AKENEOPIMMIDDLEWARECONNECTOR:LOCALES_TO_PRICE_MAP'; | ||
public const ACTIVE_STORES_FOR_PRODUCTS = 'AKENEOPIMMIDDLEWARECONNECTOR:ACTIVE_STORES_FOR_PRODUCTS'; | ||
} |
78 changes: 78 additions & 0 deletions
78
src/SprykerEco/Zed/AkeneoPimMiddlewareConnector/AkeneoPimMiddlewareConnectorConfig.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,78 @@ | ||
<?php | ||
|
||
/** | ||
* MIT License | ||
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file. | ||
*/ | ||
|
||
namespace SprykerEco\Zed\AkeneoPimMiddlewareConnector; | ||
|
||
use Spryker\Zed\Kernel\AbstractBundleConfig; | ||
use SprykerEco\Shared\AkeneoPimMiddlewareConnector\AkeneoPimMiddlewareConnectorConstants; | ||
|
||
class AkeneoPimMiddlewareConnectorConfig extends AbstractBundleConfig | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function getLocaleMapFilePath(): string | ||
{ | ||
return $this->get(AkeneoPimMiddlewareConnectorConstants::LOCALE_MAP_FILE_PATH); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getAttributeMapFilePath(): string | ||
{ | ||
return $this->get(AkeneoPimMiddlewareConnectorConstants::ATTRIBUTE_MAP_FILE_PATH); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getSuperAttributeMapFilePath(): string | ||
{ | ||
return $this->get(AkeneoPimMiddlewareConnectorConstants::SUPER_ATTRIBUTE_MAP_FILE_PATH); | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getFkCategoryTemplate(): int | ||
{ | ||
return $this->get(AkeneoPimMiddlewareConnectorConstants::FK_CATEGORY_TEMPLATE); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getTaxSet(): string | ||
{ | ||
return $this->get(AkeneoPimMiddlewareConnectorConstants::TAX_SET); | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getLocalesForImport(): array | ||
{ | ||
return $this->get(AkeneoPimMiddlewareConnectorConstants::LOCALES_FOR_IMPORT); | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getActiveStoresForProducts(): array | ||
{ | ||
return $this->get(AkeneoPimMiddlewareConnectorConstants::ACTIVE_STORES_FOR_PRODUCTS); | ||
} | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function getLocaleToPriceMap(): array | ||
{ | ||
return $this->get(AkeneoPimMiddlewareConnectorConstants::LOCALES_TO_PRICE_MAP); | ||
} | ||
} |
Oops, something went wrong.