Skip to content

Commit

Permalink
PS-1472: Enabler: Create infrastructure (#3281)
Browse files Browse the repository at this point in the history
* PS-1515: Init ProductList module
* PS-1516: Init ProductListDataImport module
* PS-1515: Init ProductListGui module
* PS-1520: Init ProductListSearch module
* PS-1521: Init ProductListStorage module
* PS-1522: Init MerchantRelationship module
* PS-1518: Init MerchantRelationshipProductList module
* PS-1519: Init MerchantRelationshipProductListDataImport module
* PS-1516: Added missed tester to ProductListDataImport module.
* PS-1523: Defined DB schema for ProductList module
* PS-1524: Created Propel Models
* PS-1535: Initialized UtilCsv module.
* Initialised MerchantRelationshipProductListGui module.
  • Loading branch information
devromans authored Jun 4, 2018
0 parents commit 6a8b4f0
Show file tree
Hide file tree
Showing 31 changed files with 642 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .coveralls.yml
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
32 changes: 32 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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
phpstan.neon
phpstan.json
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# IDEs
/.idea
/.project
/nbproject
/.buildpath
/.settings
*.sublime-*
*.AppleDouble
*.AppleDB
*.AppleDesktop

# OS
.DS_Store

/tests/_output/*
!/tests/_output/.gitkeep
28 changes: 28 additions & 0 deletions .travis.yml
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# ProductList Changelog

[Release Changelog](https://github.com/spryker/product-list/releases)
40 changes: 40 additions & 0 deletions LICENSE
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.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# ProductList Module
[![Build Status](https://travis-ci.org/spryker/product-list.svg)](https://travis-ci.org/spryker/product-list)
[![Coverage Status](https://coveralls.io/repos/github/spryker/product-list/badge.svg)](https://coveralls.io/github/spryker/product-list)

ProductList provides infrastructure and functionality to handle white/black lists of a concrete products for a specific merchants.

## Installation

```
composer require spryker/product-list
```

## Documentation

[Spryker Documentation](https://academy.spryker.com/developing_with_spryker/module_guide/modules.html)
21 changes: 21 additions & 0 deletions codeception.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace: ProductList
actor: Tester

include:
- tests/SprykerTest/Zed/ProductList

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'] }
35 changes: 35 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "spryker/product-list",
"description": "ProductList module",
"license": "proprietary",
"require": {
"php": ">=7.1",
"spryker/category": "^3.0.0 || ^4.0.0",
"spryker/kernel": "^3.20.0",
"spryker/product": "^5.0.0 || ^6.0.0"
},
"require-dev": {
"spryker/code-sniffer": "*",
"spryker/testify": "*"
},
"autoload": {
"psr-4": {
"Spryker\\": "src/Spryker/"
}
},
"autoload-dev": {
"psr-4": {
"SprykerTest\\": "tests/SprykerTest/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"config": {
"sort-packages": true
}
}
3 changes: 3 additions & 0 deletions phpstan.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"defaultLevel": 5
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<transfers xmlns="spryker:transfer-01"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="spryker:transfer-01 http://static.spryker.com/transfer-01.xsd">

</transfers>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?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\ProductList\Business;

use Spryker\Zed\Kernel\Business\AbstractBusinessFactory;

/**
* @method \Spryker\Zed\ProductList\ProductListConfig getConfig()
*/
class ProductListBusinessFactory extends AbstractBusinessFactory
{
}
17 changes: 17 additions & 0 deletions src/Spryker/Zed/ProductList/Business/ProductListFacade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?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\ProductList\Business;

use Spryker\Zed\Kernel\Business\AbstractFacade;

/**
* @method \Spryker\Zed\ProductList\Business\ProductListBusinessFactory getFactory()
*/
class ProductListFacade extends AbstractFacade implements ProductListFacadeInterface
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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\ProductList\Business;

interface ProductListFacadeInterface
{
}
12 changes: 12 additions & 0 deletions src/Spryker/Zed/ProductList/Dependency/ProductListEvents.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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\ProductList\Dependency;

interface ProductListEvents
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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\ProductList\Persistence;

use Spryker\Zed\Kernel\Persistence\AbstractEntityManager;

class ProductListEntityManager extends AbstractEntityManager implements ProductListEntityManagerInterface
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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\ProductList\Persistence;

interface ProductListEntityManagerInterface
{
}
14 changes: 14 additions & 0 deletions src/Spryker/Zed/ProductList/Persistence/ProductListRepository.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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\ProductList\Persistence;

use Spryker\Zed\Kernel\Persistence\AbstractRepository;

class ProductListRepository extends AbstractRepository implements ProductListRepositoryInterface
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?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\ProductList\Persistence;

interface ProductListRepositoryInterface
{
}
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\ProductList\Persistence\Propel;

use Orm\Zed\ProductList\Persistence\Base\SpyProductList as BaseSpyProductList;

/**
* Skeleton subclass for representing a row from the 'spy_product_list' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
abstract class AbstractSpyProductList extends BaseSpyProductList
{
}
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\ProductList\Persistence\Propel;

use Orm\Zed\ProductList\Persistence\Base\SpyProductListCategory as BaseSpyProductListCategory;

/**
* Skeleton subclass for representing a row from the 'spy_product_list_category' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
*/
abstract class AbstractSpyProductListCategory extends BaseSpyProductListCategory
{
}
Loading

0 comments on commit 6a8b4f0

Please sign in to comment.