Skip to content
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.

Commit

Permalink
Merge project into demoshop.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Aug 4, 2017
1 parent b3d161d commit 2d46de8
Show file tree
Hide file tree
Showing 233 changed files with 4,198 additions and 2,671 deletions.
16 changes: 16 additions & 0 deletions .githook
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
config:
phpstan:
level: 0
architecture:
priority: 2

preCommitFileCommands:
- GitHook\Command\FileCommand\PreCommit\CodeStyleCheckCommand
- GitHook\Command\FileCommand\PreCommit\CodeStyleFixCommand
- GitHook\Command\FileCommand\PreCommit\PhpMdCheckCommand
- GitHook\Command\FileCommand\PreCommit\PhpStanCheckCommand
- GitHook\Command\FileCommand\PreCommit\ArchitectureCheckCommand
- GitHook\Command\FileCommand\PreCommit\DependencyViolationCheckCommand

preCommitRepositoryCommands:
- GitHook\Command\RepositoryCommand\PreCommit\GitAddCommand
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ npm-debug.log
/tests/_support/_generated/*
!/tests/_support/_generated/.gitkeep

/tests/PyzTest/*/*/_output/*
/tests/PyzTest/*/*/_support/_generated/*

# propel classes
/src/Propel/Base/*
/src/Propel/Map/*
Expand All @@ -79,3 +82,4 @@ npm-debug.log
# tools
composer.phar
c3.php

6 changes: 5 additions & 1 deletion codeception.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
namespace: PyzTest
actor: Tester

include:
- tests/PyzTest/*/*

paths:
tests: tests
log: tests/_output
Expand All @@ -25,4 +29,4 @@ extensions:
- Codeception\Extension\Phantoman
config:
Codeception\Extension\Phantoman:
suites: ['Acceptance', 'Presentation']
suites: ['Presentation']
22 changes: 17 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@
"pdepend/pdepend": "^2.2.4",
"phploc/phploc": "^3.0.1",
"phpmd/phpmd": "~2.4.3",
"sebastian/phpcpd": "~2.0.2",
"sensiolabs/security-checker": "~3.0.2",
"silex/web-profiler": "~1.0.8",
"sebastian/phpcpd": "^2.0.2",
"sensiolabs/security-checker": "^3.0.2",
"silex/web-profiler": "^1.0.8",
"symfony/web-profiler-bundle": "*",
"symfony/var-dumper": "*",
"site5/phantoman": "^1.1",
Expand Down Expand Up @@ -212,6 +212,14 @@
"Acceptance\\Auth\\": "vendor/spryker/auth/tests/"
}
},
"autoload-dev": {
"psr-0": {
"PyzTest": "tests"
},
"files": [
"test-autoload.php"
]
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
Expand Down Expand Up @@ -246,10 +254,14 @@
"./deploy/heroku/run.sh"
],
"post-install-cmd": [
"PhantomInstaller\\Installer::installPhantomJS"
"PhantomInstaller\\Installer::installPhantomJS",
"GitHook\\Composer\\Scripts\\HookInstaller::installSprykerHooks",
"GitHook\\Composer\\Scripts\\HookInstaller::installProjectHooks"
],
"post-update-cmd": [
"PhantomInstaller\\Installer::installPhantomJS"
"PhantomInstaller\\Installer::installPhantomJS",
"GitHook\\Composer\\Scripts\\HookInstaller::installSprykerHooks",
"GitHook\\Composer\\Scripts\\HookInstaller::installProjectHooks"
]
}
}
25 changes: 0 additions & 25 deletions config/Shared/ci/travis/config_ci.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Spryker\Shared\Kernel\Store;
use Spryker\Shared\Mail\MailConstants;
use Spryker\Shared\Payolution\PayolutionConstants;
use Spryker\Shared\Payone\PayoneConstants;
use Spryker\Shared\ProductManagement\ProductManagementConstants;
use Spryker\Shared\Propel\PropelConstants;
use Spryker\Shared\Search\SearchConstants;
Expand Down Expand Up @@ -41,7 +40,6 @@
$config[ApplicationConstants::PORT_SSL_YVES]
);
$config[ProductManagementConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[PayoneConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[PayolutionConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[NewsletterConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[CustomerConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
Expand Down Expand Up @@ -142,29 +140,6 @@
// ---------- Email
$config[MailConstants::MAILCATCHER_GUI] = 'http://' . $config[ApplicationConstants::HOST_ZED] . ':1080';

// ---------- Payone
$config[PayoneConstants::PAYONE] = [
PayoneConstants::PAYONE_CREDENTIALS_ENCODING => 'UTF-8',
PayoneConstants::PAYONE_CREDENTIALS_KEY => getenv('PAYONE_CREDENTIALS_KEY'),
PayoneConstants::PAYONE_CREDENTIALS_MID => getenv('PAYONE_CREDENTIALS_MID'),
PayoneConstants::PAYONE_CREDENTIALS_AID => getenv('PAYONE_CREDENTIALS_AID'),
PayoneConstants::PAYONE_CREDENTIALS_PORTAL_ID => getenv('PAYONE_CREDENTIALS_PORTAL_ID'),
PayoneConstants::PAYONE_PAYMENT_GATEWAY_URL => 'https://api.pay1.de/post-gateway/',
PayoneConstants::PAYONE_REDIRECT_SUCCESS_URL => sprintf(
'%s/checkout/success/',
$config[ApplicationConstants::BASE_URL_YVES]
),
PayoneConstants::PAYONE_REDIRECT_ERROR_URL => sprintf(
'/checkout/index/',
$config[ApplicationConstants::BASE_URL_YVES]
),
PayoneConstants::PAYONE_REDIRECT_BACK_URL => sprintf(
'/checkout/regular-redirect-payment-cancellation/',
$config[ApplicationConstants::BASE_URL_YVES]
),
PayoneConstants::PAYONE_MODE => '',
];

// ---------- Payolution
$config[PayolutionConstants::TRANSACTION_GATEWAY_URL] = 'https://test.ctpe.net/frontend/payment.prc';
$config[PayolutionConstants::CALCULATION_GATEWAY_URL] = 'https://test-payment.payolution.com/payolution-payment/rest/request/v2';
Expand Down
12 changes: 0 additions & 12 deletions config/Shared/config_default-development-heroku.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Spryker\Shared\EventJournal\EventJournalConstants;
use Spryker\Shared\Kernel\KernelConstants;
use Spryker\Shared\Log\LogConstants;
use Spryker\Shared\Payone\PayoneConstants;
use Spryker\Shared\Propel\PropelConstants;
use Spryker\Shared\Search\SearchConstants;
use Spryker\Shared\Session\SessionConstants;
Expand Down Expand Up @@ -89,17 +88,6 @@
// ---------- Zed request
$config[ZedRequestConstants::TRANSFER_DEBUG_SESSION_FORWARD_ENABLED] = false;

// ---------- Payone
$config[PayoneConstants::PAYONE] = [
PayoneConstants::PAYONE_CREDENTIALS_ENCODING => 'UTF-8',
PayoneConstants::PAYONE_CREDENTIALS_KEY => '',
PayoneConstants::PAYONE_CREDENTIALS_MID => '',
PayoneConstants::PAYONE_CREDENTIALS_AID => '',
PayoneConstants::PAYONE_CREDENTIALS_PORTAL_ID => '',
PayoneConstants::PAYONE_PAYMENT_GATEWAY_URL => 'https://api.pay1.de/post-gateway/',
PayoneConstants::PAYONE_MODE => '',
];

// ---------- Navigation
$config[ZedNavigationConstants::ZED_NAVIGATION_CACHE_ENABLED] = true;

Expand Down
16 changes: 0 additions & 16 deletions config/Shared/config_default-development-heroku_DE.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Spryker\Shared\EventJournal\EventJournalConstants;
use Spryker\Shared\Mail\MailConstants;
use Spryker\Shared\Payolution\PayolutionConstants;
use Spryker\Shared\Payone\PayoneConstants;
use Spryker\Shared\ProductManagement\ProductManagementConstants;
use Spryker\Shared\Search\SearchConstants;
use Spryker\Shared\Session\SessionConstants;
Expand All @@ -32,7 +31,6 @@
$config[ApplicationConstants::PORT_SSL_YVES]
);
$config[ProductManagementConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[PayoneConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[PayolutionConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[NewsletterConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[CustomerConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
Expand Down Expand Up @@ -71,20 +69,6 @@
// ---------- Jenkins
$config[SetupConstants::JENKINS_BASE_URL] = 'http://localhost:10007/';

// ---------- Payone
$config[PayoneConstants::PAYONE][PayoneConstants::PAYONE_REDIRECT_SUCCESS_URL] = sprintf(
'%s/checkout/success/',
$config[ApplicationConstants::BASE_URL_YVES]
);
$config[PayoneConstants::PAYONE][PayoneConstants::PAYONE_REDIRECT_ERROR_URL] = sprintf(
'%s/checkout/index/',
$config[ApplicationConstants::BASE_URL_YVES]
);
$config[PayoneConstants::PAYONE][PayoneConstants::PAYONE_REDIRECT_BACK_URL] = sprintf(
'%s/checkout/regular-redirect-payment-cancellation/',
$config[ApplicationConstants::BASE_URL_YVES]
);

// ---------- Elasticsearch
$ELASTICA_INDEX_NAME = 'de_search';
$config[ApplicationConstants::ELASTICA_PARAMETER__INDEX_NAME] = $ELASTICA_INDEX_NAME;
Expand Down
15 changes: 0 additions & 15 deletions config/Shared/config_default-development.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Spryker\Shared\Kernel\KernelConstants;
use Spryker\Shared\Kernel\Store;
use Spryker\Shared\Log\LogConstants;
use Spryker\Shared\Payone\PayoneConstants;
use Spryker\Shared\Propel\PropelConstants;
use Spryker\Shared\PropelQueryBuilder\PropelQueryBuilderConstants;
use Spryker\Shared\RabbitMq\RabbitMqConstants;
Expand Down Expand Up @@ -77,20 +76,6 @@
$config[ZedRequestConstants::TRANSFER_DEBUG_SESSION_FORWARD_ENABLED] = true;
$config[ZedRequestConstants::SET_REPEAT_DATA] = true;

// ---------- Payone
$config[PayoneConstants::PAYONE] = [
PayoneConstants::PAYONE_CREDENTIALS_ENCODING => 'UTF-8',
PayoneConstants::PAYONE_CREDENTIALS_KEY => '',
PayoneConstants::PAYONE_CREDENTIALS_MID => '',
PayoneConstants::PAYONE_CREDENTIALS_AID => '',
PayoneConstants::PAYONE_CREDENTIALS_PORTAL_ID => '',
PayoneConstants::PAYONE_PAYMENT_GATEWAY_URL => 'https://api.pay1.de/post-gateway/',
PayoneConstants::PAYONE_REDIRECT_SUCCESS_URL => '',
PayoneConstants::PAYONE_REDIRECT_ERROR_URL => '',
PayoneConstants::PAYONE_REDIRECT_BACK_URL => '',
PayoneConstants::PAYONE_MODE => '',
];

// ---------- Twig
$config[TwigConstants::ZED_TWIG_OPTIONS] = [
'cache' => sprintf('%s/data/%s/cache/Yves/twig', APPLICATION_ROOT_DIR, $CURRENT_STORE),
Expand Down
15 changes: 0 additions & 15 deletions config/Shared/config_default-development_DE.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use Spryker\Shared\Application\ApplicationConstants;
use Spryker\Shared\Collector\CollectorConstants;
use Spryker\Shared\Mail\MailConstants;
use Spryker\Shared\Payone\PayoneConstants;
use Spryker\Shared\Propel\PropelConstants;
use Spryker\Shared\Queue\QueueConstants;
use Spryker\Shared\RabbitMq\RabbitMqConstants;
Expand All @@ -15,20 +14,6 @@
// ---------- Email
$config[MailConstants::MAILCATCHER_GUI] = sprintf('http://%s:1080', $config[ApplicationConstants::HOST_ZED]);

// ---------- Payone
$config[PayoneConstants::PAYONE][PayoneConstants::PAYONE_REDIRECT_SUCCESS_URL] = sprintf(
'%s/checkout/success/',
$config[ApplicationConstants::BASE_URL_YVES]
);
$config[PayoneConstants::PAYONE][PayoneConstants::PAYONE_REDIRECT_ERROR_URL] = sprintf(
'%s/checkout/index/',
$config[ApplicationConstants::BASE_URL_YVES]
);
$config[PayoneConstants::PAYONE][PayoneConstants::PAYONE_REDIRECT_BACK_URL] = sprintf(
'%s/checkout/regular-redirect-payment-cancellation/',
$config[ApplicationConstants::BASE_URL_YVES]
);

// ---------- Elasticsearch
$ELASTICA_INDEX_NAME = 'de_search';
$config[ApplicationConstants::ELASTICA_PARAMETER__INDEX_NAME] = $ELASTICA_INDEX_NAME;
Expand Down
9 changes: 4 additions & 5 deletions config/Shared/config_default-devtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@

use Pyz\Yves\Application\YvesBootstrap;
use Pyz\Zed\Application\Communication\ZedBootstrap;
use Spryker\Shared\ErrorHandler\ErrorHandlerConstants;
use Spryker\Shared\ErrorHandler\ErrorRenderer\WebExceptionErrorRenderer;
use Spryker\Shared\Kernel\KernelConstants;
use Spryker\Shared\Payone\PayoneConstants;
use Spryker\Shared\Propel\PropelConstants;
use Spryker\Shared\RabbitMq\RabbitMqConstants;
use Spryker\Shared\Search\SearchConstants;
Expand Down Expand Up @@ -70,7 +71,5 @@
$config[SetupConstants::JENKINS_BASE_URL] = 'http://localhost:10007/';
$config[SetupConstants::JENKINS_DIRECTORY] = '/data/shop/development/shared/data/common/jenkins';

// ---------- Payone
$config[PayoneConstants::PAYONE] = [
PayoneConstants::PAYONE_MODE => '',
];
// ---------- ErrorHandler
$config[ErrorHandlerConstants::ERROR_RENDERER] = WebExceptionErrorRenderer::class;
3 changes: 1 addition & 2 deletions config/Shared/config_default-devtest_DE.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Spryker\Shared\Application\ApplicationConstants;
use Spryker\Shared\Customer\CustomerConstants;
use Spryker\Shared\Payolution\PayolutionConstants;
use Spryker\Shared\Payone\PayoneConstants;
use Spryker\Shared\ProductManagement\ProductManagementConstants;
use Spryker\Shared\Propel\PropelConstants;
use Spryker\Shared\RabbitMq\RabbitMqConstants;
Expand All @@ -30,7 +29,6 @@
$config[ApplicationConstants::PORT_SSL_YVES]
);
$config[ProductManagementConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[PayoneConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[PayolutionConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[NewsletterConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[CustomerConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
Expand All @@ -57,6 +55,7 @@
$config[ApplicationConstants::YVES_TRUSTED_HOSTS] = [
$config[ApplicationConstants::HOST_YVES],
$config[ApplicationConstants::HOST_ZED],
'localhost',
];

// ---------- Propel
Expand Down
2 changes: 0 additions & 2 deletions config/Shared/config_default_DE.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Spryker\Shared\Customer\CustomerConstants;
use Spryker\Shared\Event\EventConstants;
use Spryker\Shared\Payolution\PayolutionConstants;
use Spryker\Shared\Payone\PayoneConstants;
use Spryker\Shared\ProductManagement\ProductManagementConstants;
use Spryker\Shared\Session\SessionConstants;
use Spryker\Shared\ZedRequest\ZedRequestConstants;
Expand All @@ -25,7 +24,6 @@
$config[ApplicationConstants::PORT_SSL_YVES]
);
$config[ProductManagementConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[PayoneConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[PayolutionConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[NewsletterConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
$config[CustomerConstants::BASE_URL_YVES] = $config[ApplicationConstants::BASE_URL_YVES];
Expand Down
Loading

0 comments on commit 2d46de8

Please sign in to comment.