Skip to content

Commit

Permalink
Prepare next version with all SF 4 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectricMaxxx committed Aug 28, 2018
1 parent a479131 commit 34d200a
Show file tree
Hide file tree
Showing 157 changed files with 5,857 additions and 4,164 deletions.
24 changes: 24 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file is a "template" of which env vars need to be defined for your application
# Copy this file to .env file for development, create environment variables when deploying to production
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=9d27ae2fee5cdce7eb45d7aba490cfcb
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS=localhost,example.com
###< symfony/framework-bundle ###

###> symfony/swiftmailer-bundle ###
# For Gmail as a transport, use: "gmail://username:password@localhost"
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name
###< doctrine/doctrine-bundle ###
24 changes: 24 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file is a "template" of which env vars need to be defined for your application
# Copy this file to .env file for development, create environment variables when deploying to production
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=9d27ae2fee5cdce7eb45d7aba490cfcb
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS=localhost,example.com
###< symfony/framework-bundle ###

###> symfony/swiftmailer-bundle ###
# For Gmail as a transport, use: "gmail://username:password@localhost"
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name
###< doctrine/doctrine-bundle ###
32 changes: 13 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
/app/config/parameters.yml
/build/
/phpunit.xml
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
!/var/sessions
/var/sessions/*
!var/sessions/.gitkeep
!var/SymfonyRequirements.php

###> symfony/framework-bundle ###
.env
/public/bundles/
/var/
/vendor/
/web/bundles/
###< symfony/framework-bundle ###

###> symfony/phpunit-bridge ###
.phpunit
/phpunit.xml
###< symfony/phpunit-bridge ###

/app/config/phpcr.yml
/jackrabbit/
/jackrabbit-standalone-*.jar
/vagrant/.vagrant
vagrant/.vagrant
/config/phpcr.yaml
7 changes: 3 additions & 4 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ build:
# The configuration of app when it is exposed to the web.
web:
# The public directory of the app, relative to its root.
document_root: "/web"
document_root: "/public"
# The front-controller script to send non-static requests to.
passthru: "/app.php"
passthru: "/index.php"
whitelist:
# slides
- ^/slides/.*\.html$
Expand Down Expand Up @@ -58,9 +58,8 @@ mounts:
# The hooks that will be performed when the package is deployed.
hooks:
build: |
rm web/app_dev.php
# place sqlite file into /tmp so that we can write to it during deploy
sed -i 's@%kernel.root_dir%/../var/app.sqlite@/tmp/app.sqlite@' app/config/parameters.yml
sed -i 's@%kernel.project_dir%/var/app.sqlite@/tmp/app.sqlite@' app/config/parameters.yml
bin/console --env=prod assets:install -n --no-debug
bin/console --env=prod assetic:dump -n --no-debug
deploy: ./bin/reloadFixtures.sh $PWD true
Expand Down
12 changes: 4 additions & 8 deletions .sensiolabs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,17 @@

global_exclude_dirs:
- vendor
- web
- app/tests
- public
- tests
- vagrant
- bin

pre_composer_script: |
#!/bin/bash
cp app/config/parameters.yml.dist app/config/parameters.yml
cp app/config/phpcr_doctrine_dbal.yml.dist app/config/phpcr.yml
cp config/fixtures/parameters.yml.dist config/packages/parameters.yml
cp config/fixtures/phpcr_doctrine_dbal.yml.dist config/packages/phpcr.yml
exclude_patterns:
- app/autoload.php
- app/check.php
- app/SymfonyRequirements.php
rules:
symfony.web_config_should_not_be_present:
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ before_install:
install:
- phpenv config-add travis.php.ini
- php -ini | grep memory_limit
- if [ "$COMPOSER_INSTALL" != "1" ]; then composer update --no-scripts --prefer-dist; else composer install --no-scripts --prefer-dist; fi
- if [ "$COMPOSER_INSTALL" != "1" ]; then composer update --no-scripts --prefer-dist -vvv; else composer install --no-scripts --prefer-dist -vvv; fi

before_script:
- cp app/config/phpcr_${TRANSPORT}.yml.dist app/config/phpcr.yml
- cp config/fixtures/phpcr_${TRANSPORT}.yaml.dist config/phpcr.yaml
- composer run-script post-update-cmd
- ./tests/travis_${TRANSPORT}.sh
- bin/console doctrine:phpcr:workspace:create sandbox_test -e=test
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You can run the sandbox on your system, or in a virtualbox VM using Vagrant. For

### You will need:

* PHP 5.3.9+ (with intl extension)
* PHP 7.1+ (with intl extension)
* PHPUnit 3.6+ (optional)
* Composer

Expand All @@ -43,11 +43,11 @@ implementation.
Once you have that, copy the default jackalope-jackrabbit configuration file,
adjust it as needed and install the dependencies with composer:

cp app/config/phpcr_jackrabbit.yml.dist app/config/phpcr.yml
cp config/fixtures/phpcr_jackrabbit.yml.dist config/packages/phpcr.yml

The last command will fetch the main project and all its dependencies (CMF
Bundles, Symfony, Doctrine\PHPCR, Jackalope ... ). You might want to have a look
at the ``app/config/parameters.yml`` and adjust as needed.
at the ``config/packages/phpcr.yml`` and adjust as needed.

### Install the Doctrine DBAL provider (optional)

Expand All @@ -56,7 +56,7 @@ files and create the database accordingly. If you have the PHP sqlite extension
available, this is the simplest to quickly try out the CMF. Copy the file
and then install the dependencies:

cp app/config/phpcr_doctrine_dbal.yml.dist app/config/phpcr.yml
cp config/fixtures/phpcr_doctrine_dbal.yml.dist config/packages/phpcr.yml

The Doctrine DBAL implementation is installed by default already along side the Jackrabbit implementation.

Expand Down Expand Up @@ -110,7 +110,7 @@ Create an apache virtual host entry along the lines of:

<Virtualhost *:80>
Servername cmf.lo
DocumentRoot /path/to/symfony-cmf/cmf-sandbox/web
DocumentRoot /path/to/symfony-cmf/cmf-sandbox/public
<Directory /path/to/symfony-cmf/cmf-sandbox>
AllowOverride All
</Directory>
Expand Down
1 change: 0 additions & 1 deletion app/.htaccess

This file was deleted.

18 changes: 0 additions & 18 deletions app/AppCache.php

This file was deleted.

108 changes: 0 additions & 108 deletions app/AppKernel.php

This file was deleted.

22 changes: 0 additions & 22 deletions app/autoload.php

This file was deleted.

Loading

0 comments on commit 34d200a

Please sign in to comment.