Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Jul 30, 2018
0 parents commit b06f1a3
Show file tree
Hide file tree
Showing 40 changed files with 1,597 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .gitignore
@@ -0,0 +1,75 @@
# remove the following ignores for your project
/app/constants.php

# symfony default
/.web-server-pid
/app/config/parameters.yml
/build/
/phpunit.xml
/web/bundles/

# local config
/.env
!/app/config/local
/app/config/local/*
!app/config/local/.gitkeep

# pimcore legacy (remove this for your own development)
!/legacy
/legacy/*
!legacy/.gitkeep
!legacy/bundle

/var/*
!/var/.gitkeep
!/var/classes/
/var/classes/DataObject

!/var/config
/var/config/system.php
/var/config/debug-mode.php
/var/config/maintenance.php

# project specific recommendations
/var/config/tag-manager.php
/var/config/reports.php


/web/var/
/web/sitemap*.xml

# PHP-CS-Fixer
/.php_cs
/.php_cs.cache

# composer.local.json is referenced in composer-merge-plugin
# remove this for your projects if you want to track the file
/composer.local.json

# composer
/vendor/

# PhpStorm / IDEA
.idea
# NetBeans
nbproject

# codeception (only stage *.dist.yml config files)
/codeception.yml
/pimcore/codeception.yml
/pimcore/tests/*.suite.yml
/pimcore/tests/_output/*
/pimcore/tests/_support/_generated/*

# keep legacy paths ignored for easier migration
/plugins/
/tools/
/website/
.temp
node_modules/
install-profiles/
web/build/
esign
importdefinitions.php
web2print.php
template/web/build
1 change: 1 addition & 0 deletions README.md
@@ -0,0 +1 @@
# Dominiks Pimcore 5 Project Skeleton
35 changes: 35 additions & 0 deletions app/AppKernel.php
@@ -0,0 +1,35 @@
<?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
*/
use Pimcore\HttpKernel\BundleCollection\BundleCollection;
use Pimcore\Kernel;

class AppKernel extends Kernel
{
/**
* Adds bundles to register to the bundle collection. The collection is able
* to handle priorities and environment specific bundles.
*
* @param BundleCollection $collection
*/
public function registerBundlesToCollection(BundleCollection $collection)
{
if (class_exists('\\AppBundle\\AppBundle')) {
$collection->addBundle(new \AppBundle\AppBundle);
}

if (class_exists('\Pimcore\Bundle\LegacyBundle\PimcoreLegacyBundle')) {
$collection->addBundle(new \Pimcore\Bundle\LegacyBundle\PimcoreLegacyBundle);
}
}
}
127 changes: 127 additions & 0 deletions app/Resources/views/Default/default.html.php
@@ -0,0 +1,127 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example</title>
</head>

<body>

<style type="text/css">
body {
padding:0;
margin: 0;
font-family: "Lucida Sans Unicode", Arial;
font-size: 14px;
}

#site {
margin: 0 auto;
width: 600px;
padding: 30px 0 0 0;
color:#65615E;
}

h1, h2, h3 {
font-size: 18px;
padding: 0 0 5px 0;
border-bottom: 1px solid #001428;
margin-bottom: 5px;
}

h3 {
font-size: 14px;
padding: 15px 0 5px 0;
margin-bottom: 5px;
border-color: #cccccc;
}

img {
border: 0;
}

p {
padding: 0 0 5px 0;
}

a {
color: #000;
}

#logo {
text-align: center;
padding: 50px 0;
}

#logo hr {
display: block;
height: 1px;
overflow: hidden;
background: #BBB;
border: 0;
padding:0;
margin:30px 0 20px 0;
}

.claim {
text-transform: uppercase;
color:#BBB;
}

#site ul {
padding: 10px 0 10px 20px;
list-style: circle;
}

.buttons {
margin-bottom: 100px;
text-align: center;
}

.buttons a {
display: inline-block;
background: #6428b4;
color:#fff;
padding: 5px 10px;
margin-right: 10px;
width:40%;
border-radius: 2px;
text-decoration: none;
}

.buttons a:hover {
background: #1C8BC1;
}

.buttons a:last-child {
margin: 0;
}

</style>


<div id="site">
<div id="logo">
<a href="http://www.pimcore.com/"><img src="/pimcore/static6/img/logo-claim-gray.svg" style="width: 400px;" /></a>
<hr />
</div>

<?php if($this->editmode) { ?>
<div class="buttons">
<a target="_blank" href="https://www.pimcore.com/docs/5.0.0/Getting_Started/Installation.html">Install Sample Data / Boilerplate</a>
<a target="_blank" href="https://www.pimcore.com/docs/5.0.0/Getting_Started/index.html">Getting Started</a>
</div>

<div class="info">
<h2>Where can I edit some pages?</h2>
<p>
Well, it seems that you're using the professional distribution of pimcore which doesn't include any
templates / themes or contents, it's designed to start a project from scratch. If you need a jump start
please consider using our sample data / boilerplate package which includes everything you need to get started.
</p>
</div>
<?php } ?>
</div>

</body>
</html>
69 changes: 69 additions & 0 deletions app/config/config.yml
@@ -0,0 +1,69 @@
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: services.yml }
- { resource: 'local/' }

pimcore:

#### TRANSLATIONS
# translations:
# case_insensitive: true

#### REDIS CACHE
# cache:
# pools:
# redis:
# enabled: true
# connection:
# server: localhost
# database: 14

#### FEATURE FLAGS
# flags:
# zend_date: true

#### CLASS OVERRIDES EXAMPLES
# models:
# class_overrides:
# 'Pimcore\Model\DataObject\News': 'AppBundle\Model\DataObject\News'
# 'Pimcore\Model\DataObject\News\Listing': 'AppBundle\Model\DataObject\News\Listing'
# 'Pimcore\Model\DataObject\Folder': 'AppBundle\Model\DataObject\Folder'
# 'Pimcore\Model\Asset\Folder': 'AppBundle\Model\Asset\Folder'
# 'Pimcore\Model\Asset\Image': 'AppBundle\Model\Asset\Image'
# 'Pimcore\Model\Document\Page': 'AppBundle\Model\Document\Page'
# 'Pimcore\Model\Document\Link': 'AppBundle\Model\Document\Link'
# 'Pimcore\Model\Document\Listing': 'AppBundle\Model\Document\Listing'


#### CUSTOM DOCUMENT EDITABLES
# documents:
# tags:
# map:
# markdown: \AppBundle\Model\Document\Tag\Markdown


#### CUSTOM OBJECT DATA TYPES
# objects:
# class_definitions:
# data:
# map:
# myDataType: \AppBundle\Model\DataObject\Data\MyDataType


#### ASSET CUSTOM SETTINGS
# assets:
# versions:
# use_hardlinks: false
# image:
# low_quality_image_preview:
# enabled: false
# generator: imagick

#### SYMFONY OVERRIDES
framework:

#### USE SESSION HANDLER CONFIGURED IN php.ini
# session:
# handler_id: null

3 changes: 3 additions & 0 deletions app/config/config_dev.yml
@@ -0,0 +1,3 @@
imports:
- { resource: config.yml }

3 changes: 3 additions & 0 deletions app/config/config_prod.yml
@@ -0,0 +1,3 @@
imports:
- { resource: config.yml }

22 changes: 22 additions & 0 deletions app/config/config_test.yml
@@ -0,0 +1,22 @@
imports:
- { resource: config_dev.yml }

# this cache is used during tests when setting up pimcore
pimcore:
cache:
pool_service_id: pimcore.cache.core.pool.array

doctrine:
dbal:
connections:
default:
url: '%pimcore_test.db.dsn%'
host: ~
port: ~
dbname: ~
user: ~
password: ~

parameters:
pimcore_test.db.dsn: '%env(PIMCORE_TEST_DB_DSN)%'
env(PIMCORE_TEST_DB_DSN): ~
Empty file added app/config/local/.gitkeep
Empty file.
26 changes: 26 additions & 0 deletions app/config/parameters.example.yml
@@ -0,0 +1,26 @@
parameters:
secret: ThisTokenIsNotSoSecretChangeIt

# customize the full path to external executables
# normally they are auto-detected by `which program` or auto-discovered in the configured path in
# System Settings -> General -> Additional $PATH variable
# but in general it's a good idea to have your programs in your $PATH environment variable (system wide)

#pimcore_executable_composer: php /opt/vendor/bin/composer.phar
#pimcore_executable_html2text: /usr/local/html2text/bin/html2text
#pimcore_executable_soffice: /opt/libreoffice/bin/soffice
#pimcore_executable_gs: /opt/ghostscript/bin/gs
#pimcore_executable_pdftotext: /opt/tools/pdftotext
#pimcore_executable_xvfb-run: /opt/tools/xvfb-run
#pimcore_executable_pngcrush: /opt/tools/pngcrush
#pimcore_executable_zopflipng: /opt/tools/zopflipng
#pimcore_executable_pngout: /opt/tools/pngout
#pimcore_executable_advpng: /opt/tools/advpng
#pimcore_executable_cjpeg: /opt/tools/cjpeg
#pimcore_executable_jpegoptim: /opt/tools/jpegoptim
#pimcore_executable_php: /usr/local/custom-php/bin/php
#pimcore_executable_nice: /opt/tools/nice
#pimcore_executable_nohup: /opt/tools/nohup
#pimcore_executable_ffmpeg: /opt/tools/ffmpeg
#pimcore_executable_exiftool: /opt/tools/exiftool

0 comments on commit b06f1a3

Please sign in to comment.