Skip to content

Commit

Permalink
Merge pull request #11 from spryker-eco/dev
Browse files Browse the repository at this point in the history
Release 1.0.0
  • Loading branch information
alex-galych authored Aug 3, 2018
2 parents 9c2da7a + 37656c1 commit 0956b47
Show file tree
Hide file tree
Showing 157 changed files with 11,065 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .license
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.
*/
18 changes: 18 additions & 0 deletions .scrutinizer.yml
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/*
47 changes: 47 additions & 0 deletions .travis.yml
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
21 changes: 21 additions & 0 deletions LICENSE
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.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# AkeneoPimMiddlewareConnector Module

[![Build Status](https://travis-ci.org/spryker-eco/akeneo-pim-middleware-connector.svg?branch=dev)](https://travis-ci.org/spryker-eco/akeneo-pim-middleware-connector)

## Installation

```
Expand Down
24 changes: 24 additions & 0 deletions codeception.yml
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/*'
32 changes: 32 additions & 0 deletions composer.json
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/"
}
}
}
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';
}
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);
}
}
Loading

0 comments on commit 0956b47

Please sign in to comment.