Skip to content

Commit

Permalink
Merge pull request #2 from spryker-eco/development
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 a907340 + 1ff6f12 commit f715a2c
Show file tree
Hide file tree
Showing 57 changed files with 3,973 additions and 663 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# IDEs
/.idea
/.project
/nbproject
/.buildpath
/.settings
*.sublime-*
*.AppleDouble
*.AppleDB
*.AppleDesktop
phpstan.json
4 changes: 4 additions & 0 deletions .license
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* MIT License
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
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

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.
24 changes: 24 additions & 0 deletions codeception.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
namespace: AkeneoPim

include:
- tests/SprykerEcoTest/Service/AkeneoPim

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/*'
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@
"name": "spryker-eco/akeneo-pim",
"description": "Akeneo PIM Integration Module",
"require": {
"akeneo/api-php-client": "^1.0@beta"
"php": ">=7.1",
"spryker/kernel": "^3.0.0",
"akeneo/api-php-client": "^1.0.0",
"php-http/guzzle6-adapter": "^1.0.0"
},
"autoload": {
"psr-0": {
"SprykerEco": "src/",
"Function": "tests/"
}
},
"minimum-stability": "dev",
"autoload-dev": {
"psr-0": {
"Functional": "tests/",
Expand Down
14 changes: 0 additions & 14 deletions config/Shared/config.dist.php

This file was deleted.

11 changes: 0 additions & 11 deletions jobs.dist.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,53 @@

/**
* MIT License
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
* For full license information, please view the LICENSE file that was distributed with this source code.
*/

namespace SprykerEco\Zed\AkeneoPim;
namespace SprykerEco\Service\AkeneoPim;

use Spryker\Zed\Kernel\AbstractBundleConfig;
use Spryker\Service\Kernel\AbstractBundleConfig;
use SprykerEco\Shared\AkeneoPim\AkeneoPimConstants;

/**
* Class AkeneoPimConfig
* @package SprykerEco\Zed\AkeneoPim
*/
class AkeneoPimConfig extends AbstractBundleConfig
{

/**
* @return string
*/
public function getHost()
public function getHost(): string
{
return $this->get(AkeneoPimConstants::HOST);
}

/**
* @return string
*/
public function getUsername()
public function getUsername(): string
{
return $this->get(AkeneoPimConstants::USERNAME);
}

/**
* @return string
*/
public function getPassword()
public function getPassword(): string
{
return $this->get(AkeneoPimConstants::PASSWORD);
}

/**
* @return string
*/
public function getClientId()
public function getClientId(): string
{
return $this->get(AkeneoPimConstants::CLIENT_ID);
}

/**
* @return string
*/
public function getClientSecret()
public function getClientSecret(): string
{
return $this->get(AkeneoPimConstants::CLIENT_SECRET);
}

}
Loading

0 comments on commit f715a2c

Please sign in to comment.