Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bluvulture authored Jan 24, 2024
0 parents commit f727f51
Show file tree
Hide file tree
Showing 49 changed files with 2,920 additions and 0 deletions.
1 change: 1 addition & 0 deletions .docker/30-xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xdebug.mode=debug,coverage
834 changes: 834 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions .gitattributes
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
4 changes: 4 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Changes in this pull request
Resolves #

## Additional info
2 changes: 2 additions & 0 deletions .github/ci/files/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
APP_ENV=test
APP_DEBUG=true
5 changes: 5 additions & 0 deletions .github/ci/files/.my.cnf
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=
46 changes: 46 additions & 0 deletions .github/ci/files/bin/console
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();
5 changes: 5 additions & 0 deletions .github/ci/files/config/bundles.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
'Pimcore\\Bundle\\xTemplateBundlex\\PimcorexTemplateBundlex' => ['all' => true],
];
3 changes: 3 additions & 0 deletions .github/ci/files/config/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
imports:
- { resource: services.yaml }
- { resource: system.yaml }
32 changes: 32 additions & 0 deletions .github/ci/files/config/packages/security.yaml
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]
32 changes: 32 additions & 0 deletions .github/ci/files/config/packages/test/config.yaml
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'
23 changes: 23 additions & 0 deletions .github/ci/files/config/services.yaml
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' ]
58 changes: 58 additions & 0 deletions .github/ci/files/config/system.yaml
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: ''
22 changes: 22 additions & 0 deletions .github/ci/files/kernel/Kernel.php
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
{

}
Loading

0 comments on commit f727f51

Please sign in to comment.