-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 44ae61e
Showing
46 changed files
with
2,802 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 @@ | ||
xdebug.mode=debug,coverage |
Large diffs are not rendered by default.
Oops, something went wrong.
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,16 @@ | ||
|
||
* -text | ||
|
||
|
||
# Exclude build/test files from archive to reduce ZIP size for composer dist download | ||
/.github export-ignore | ||
/tests export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.markdownlint.json export-ignore | ||
/.php-cs-fixer.dist.php export-ignore | ||
/CLA.md export-ignore | ||
/CONTRIBUTING.md export-ignore | ||
/codeception.dist.yml export-ignore | ||
/phpstan* export-ignore |
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 @@ | ||
## Changes in this pull request | ||
Resolves # | ||
|
||
## Additional info |
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,2 @@ | ||
APP_ENV=test | ||
APP_DEBUG=true |
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,5 @@ | ||
[client] | ||
host=127.0.0.1 | ||
port=33006 | ||
user=root | ||
password= |
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,46 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
/** | ||
* Pimcore | ||
* | ||
* This source file is available under two different licenses: | ||
* - GNU General Public License version 3 (GPLv3) | ||
* - Pimcore Enterprise License (PEL) | ||
* Full copyright and license information is available in | ||
* LICENSE.md which is distributed with this source code. | ||
* | ||
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org) | ||
* @license http://www.pimcore.org/license GPLv3 and PEL | ||
*/ | ||
|
||
ob_get_clean(); | ||
|
||
if (file_exists($a = getcwd() . '/vendor/autoload.php')) { | ||
include $a; | ||
} elseif (file_exists($a = __DIR__ . '/../../../../vendor/autoload.php')) { | ||
include $a; | ||
} elseif (file_exists($a = __DIR__ . '/../vendor/autoload.php')) { | ||
include $a; | ||
} else { | ||
fwrite(STDERR, 'Cannot locate autoloader; please run "composer install"' . PHP_EOL); | ||
exit(1); | ||
} | ||
|
||
\Pimcore\Bootstrap::setProjectRoot(); | ||
|
||
define('PIMCORE_CONSOLE', true); | ||
|
||
|
||
$input = new \Symfony\Component\Console\Input\ArgvInput(); | ||
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) { | ||
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env); | ||
} | ||
|
||
if ($input->hasParameterOption('--no-debug', true)) { | ||
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0'); | ||
} | ||
|
||
/** @var \Pimcore\Kernel $kernel */ | ||
$kernel = \Pimcore\Bootstrap::startupCli(); | ||
$application = new \Pimcore\Console\Application($kernel); | ||
$application->run(); |
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
'Pimcore\\Bundle\\xTemplateBundlex\\PimcorexTemplateBundlex' => ['all' => true], | ||
]; |
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,3 @@ | ||
imports: | ||
- { resource: services.yaml } | ||
- { resource: system.yaml } |
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 @@ | ||
security: | ||
enable_authenticator_manager: true | ||
|
||
providers: | ||
pimcore_admin: | ||
id: Pimcore\Security\User\UserProvider | ||
|
||
firewalls: | ||
dev: | ||
pattern: ^/(_(profiler|wdt)|css|images|js)/ | ||
security: false | ||
|
||
# Pimcore WebDAV HTTP basic // DO NOT CHANGE! | ||
pimcore_webdav: | ||
pattern: ^/asset/webdav | ||
provider: pimcore_admin | ||
http_basic: ~ | ||
|
||
access_control: | ||
# Pimcore admin ACl // DO NOT CHANGE! | ||
- { path: ^/admin/settings/display-custom-logo, roles: PUBLIC_ACCESS } | ||
- { path: ^/admin/login/2fa-verify, roles: IS_AUTHENTICATED_2FA_IN_PROGRESS } | ||
- { path: ^/admin/login/2fa-setup, roles: ROLE_PIMCORE_USER } | ||
- { path: ^/admin/login/2fa, roles: IS_AUTHENTICATED_2FA_IN_PROGRESS } | ||
- { path: ^/admin/login$, roles: PUBLIC_ACCESS } | ||
- { path: ^/admin/login/(login|lostpassword|deeplink|csrf-token)$, roles: PUBLIC_ACCESS } | ||
- { path: ^/admin, roles: ROLE_PIMCORE_USER } | ||
- { path: ^/asset/webdav, roles: ROLE_PIMCORE_USER } | ||
|
||
role_hierarchy: | ||
# Pimcore admin // DO NOT CHANGE! | ||
ROLE_PIMCORE_ADMIN: [ROLE_PIMCORE_USER] |
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 @@ | ||
imports: | ||
- { resource: ../../config.yaml } | ||
|
||
# this cache is used during tests when setting up pimcore | ||
framework: | ||
cache: | ||
pools: | ||
pimcore.cache.pool: | ||
public: true | ||
tags: true | ||
default_lifetime: 31536000 # 1 year | ||
adapter: cache.adapter.array | ||
|
||
|
||
doctrine: | ||
dbal: | ||
connections: | ||
default: | ||
url: '%pimcore_test.db.dsn%' | ||
host: ~ | ||
port: ~ | ||
dbname: ~ | ||
user: ~ | ||
password: ~ | ||
mapping_types: | ||
enum: string | ||
bit: boolean | ||
|
||
parameters: | ||
pimcore_test.db.dsn: '%env(PIMCORE_TEST_DB_DSN)%' | ||
env(PIMCORE_TEST_DB_DSN): ~ | ||
pimcore.encryption.secret: 'def00000fc1e34a17a03e2ef85329325b0736a5941633f8062f6b0a1a20f416751af119256bea0abf83ac33ef656b3fff087e1ce71fa6b8810d7f854fe2781f3fe4507f6' |
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,23 @@ | ||
parameters: | ||
secret: ThisTokenIsNotSoSecretChangeIt | ||
|
||
services: | ||
_defaults: | ||
autowire: true | ||
autoconfigure: true | ||
public: false | ||
|
||
# | ||
# INSTALLER | ||
# | ||
Pimcore\Bundle\xTemplateBundlex\Installer: | ||
public: true | ||
arguments: | ||
$bundle: "@=service('kernel').getBundle('PimcorexTemplateBundlex')" | ||
|
||
# controllers are imported separately to make sure they're public | ||
# and have a tag that allows actions to type-hint services | ||
Pimcore\Bundle\xTemplateBundlex\Controller\: | ||
resource: '../src/Controller' | ||
public: true | ||
tags: [ 'controller.service_arguments' ] |
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,58 @@ | ||
pimcore: | ||
general: | ||
timezone: Europe/Berlin | ||
path_variable: '' | ||
domain: pimcore-test.dev | ||
redirect_to_maindomain: false | ||
language: en | ||
valid_languages: 'en,de' | ||
fallback_languages: | ||
en: '' | ||
de: '' | ||
default_language: '' | ||
disable_usage_statistics: false | ||
documents: | ||
versions: | ||
days: null | ||
steps: 10 | ||
error_pages: | ||
default: /error | ||
allow_trailing_slash: 'no' | ||
generate_preview: true | ||
objects: | ||
versions: | ||
days: null | ||
steps: 10 | ||
assets: | ||
versions: | ||
days: null | ||
steps: 10 | ||
icc_rgb_profile: '' | ||
icc_cmyk_profile: '' | ||
full_page_cache: | ||
enabled: false | ||
lifetime: null | ||
exclude_patterns: '' | ||
exclude_cookie: '' | ||
httpclient: | ||
adapter: Socket | ||
proxy_host: '' | ||
proxy_port: '' | ||
proxy_user: '' | ||
proxy_pass: '' | ||
email: | ||
sender: | ||
name: pimcore | ||
email: [email protected] | ||
return: | ||
name: pimcore | ||
email: [email protected] | ||
debug: | ||
email_addresses: '' | ||
applicationlog: | ||
mail_notification: | ||
send_log_summary: false | ||
filter_priority: null | ||
mail_receiver: '' | ||
archive_treshold: '30' | ||
archive_alternative_database: '' |
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,22 @@ | ||
<?php | ||
/** | ||
* Pimcore | ||
* | ||
* This source file is available under two different licenses: | ||
* - GNU General Public License version 3 (GPLv3) | ||
* - Pimcore Enterprise License (PEL) | ||
* Full copyright and license information is available in | ||
* LICENSE.md which is distributed with this source code. | ||
* | ||
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org) | ||
* @license http://www.pimcore.org/license GPLv3 and PEL | ||
*/ | ||
|
||
namespace App; | ||
|
||
use Pimcore\Kernel as BaseKernel; | ||
|
||
class Kernel extends BaseKernel | ||
{ | ||
|
||
} |
Oops, something went wrong.