Skip to content

Commit

Permalink
Merge pull request #48 from icapps/feature/sulu-upgrade
Browse files Browse the repository at this point in the history
Sulu 2.4 upgrade
  • Loading branch information
sanhofman committed Dec 29, 2021
2 parents 7034bde + 045c1bb commit 91f8b10
Show file tree
Hide file tree
Showing 52 changed files with 22,133 additions and 4,710 deletions.
26 changes: 13 additions & 13 deletions symfony/.env
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ APP_VERSION=v1.0
#TRUSTED_HOSTS=localhost,example.com
###< symfony/framework-bundle ###

###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN=semaphore
###< symfony/lock ###

###> sulu/sulu ###
# Email address that will receive system notifications and might be used as universal fallback value by bundles
ADMIN_EMAIL=[email protected]
Expand All @@ -37,27 +43,21 @@ MAILER_DSN=smtp://127.0.0.1:1025
# MAILER_DSN=mailgun+smtp://USERNAME:PASSWORD@default?region=us
###< symfony/mailgun-mailer ###

###> doctrine/phpcr-bundle ###
PHPCR_USER=admin
PHPCR_PASSWORD=admin
PHPCR_WORKSPACE=default
###< doctrine/phpcr-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7"
DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
DATABASE_URL=mysql://root:ChangeMe@127.0.0.1:3306/su_myapp?serverVersion=8.0.27
###< doctrine/doctrine-bundle ###

###> doctrine/phpcr-bundle ###
PHPCR_USER=admin
PHPCR_PASSWORD=admin
PHPCR_WORKSPACE=default
###< doctrine/phpcr-bundle ###

###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN=semaphore
###< symfony/lock ###

###> snc/redis-bundle ###
# passwords that contain special characters (@, %, :, +) must be urlencoded
REDIS_URL=redis://localhost
Expand Down
3 changes: 2 additions & 1 deletion symfony/.env.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# define your env variables for the test env here
APP_DEBUG=0
APP_VERSION=v1.0-test
APP_VERSION=v1.0-test
SYMFONY_DEPRECATIONS_HELPER=999999
2 changes: 1 addition & 1 deletion symfony/assets/admin/app.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// Add project specific javascript code here:
// Add project specific javascript code and import of additional bundles here:
3 changes: 2 additions & 1 deletion symfony/assets/admin/babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"plugins": [
["@babel/plugin-proposal-decorators", {"legacy": true}],
"@babel/plugin-transform-flow-strip-types",
"@babel/plugin-proposal-nullish-coalescing-operator"
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-class-properties"
],
"assumptions": {
"setPublicClassFields": true
Expand Down
8 changes: 6 additions & 2 deletions symfony/assets/admin/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Bundles
// This file should only be changed by the `bin/console sulu:admin:update-build` command:
// See https://docs.sulu.io/en/latest/upgrades/upgrade-2.x.html

// Sulu Core Bundles
import {startAdmin} from 'sulu-admin-bundle';
import 'sulu-audience-targeting-bundle';
import 'sulu-category-bundle';
Expand All @@ -12,9 +15,10 @@ import 'sulu-route-bundle';
import 'sulu-search-bundle';
import 'sulu-security-bundle';
import 'sulu-snippet-bundle';
import 'sulu-trash-bundle';
import 'sulu-website-bundle';

// Add project specific javascript code to the following file:
// Add project specific javascript code and import of additional bundles to the following file:
import './app.js';

// Start admin application
Expand Down
Loading

0 comments on commit 91f8b10

Please sign in to comment.