Skip to content

Commit 31b18ab

Browse files
committed
composer create-project ibexa/experience-skeleton:3.3.15 ./ --no-install
1 parent d56a95e commit 31b18ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+6495
-10148
lines changed

.env

+57-51
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
###> symfony/framework-bundle ###
1717
APP_ENV=dev
18-
APP_SECRET=772ef243856f2699d6562b59f6124e63
18+
APP_SECRET=d38c7c968a23be776f69cc8c470e09d0
1919
###< symfony/framework-bundle ###
2020

2121
###> symfony/mailer ###
@@ -27,50 +27,10 @@ APP_SECRET=772ef243856f2699d6562b59f6124e63
2727
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
2828
#
2929
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
30-
# DATABASE_URL="mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7"
31-
DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8"
30+
# DATABASE_URL="mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7&charset=utf8mb4"
31+
DATABASE_URL="postgresql://symfony:ChangeMe@127.0.0.1:5432/app?serverVersion=13&charset=utf8"
3232
###< doctrine/doctrine-bundle ###
3333

34-
###> google/recaptcha ###
35-
# To use Google Recaptcha, you must register a site on Recaptcha's admin panel:
36-
# https://www.google.com/recaptcha/admin
37-
GOOGLE_RECAPTCHA_SITE_KEY=
38-
GOOGLE_RECAPTCHA_SECRET=
39-
###< google/recaptcha ###
40-
41-
###> excelwebzone/recaptcha-bundle ###
42-
EWZ_RECAPTCHA_SITE_KEY=
43-
EWZ_RECAPTCHA_SECRET=
44-
###< excelwebzone/recaptcha-bundle ###
45-
46-
###> nelmio/cors-bundle ###
47-
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
48-
###< nelmio/cors-bundle ###
49-
50-
###> symfony/swiftmailer-bundle ###
51-
# For Gmail as a transport, use: "gmail://username:password@localhost"
52-
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
53-
# Delivery is disabled by default via "null://localhost"
54-
MAILER_URL=null://localhost
55-
###< symfony/swiftmailer-bundle ###
56-
57-
###> lexik/jwt-authentication-bundle ###
58-
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
59-
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
60-
JWT_PASSPHRASE=e6f7c4674b3d8a1a98774ac85d3b3d93
61-
###< lexik/jwt-authentication-bundle ###
62-
63-
###> symfony/lock ###
64-
# Choose one of the stores below
65-
# postgresql+advisory://db_user:db_password@localhost/db_name
66-
LOCK_DSN=semaphore
67-
###< symfony/lock ###
68-
69-
###> nelmio/solarium-bundle ###
70-
SOLR_HOST=localhost
71-
SOLR_CORE=example
72-
###< nelmio/solarium-bundle ###
73-
7434
###> ibexa/oss ###
7535
SEARCH_ENGINE=legacy
7636
# Uncomment following line if you want to change the purge type.
@@ -80,15 +40,17 @@ SEARCH_ENGINE=legacy
8040
HTTPCACHE_DEFAULT_TTL=86400
8141
HTTPCACHE_PURGE_SERVER=http://localhost:80
8242
HTTPCACHE_VARNISH_INVALIDATE_TOKEN=
43+
# Uncomment following line if you want to enable translation-aware behavior for HTTP cache.
44+
# HTTPCACHE_TRANSLATION_AWARE_ENABLED=true
8345
CACHE_POOL=cache.tagaware.filesystem
84-
# When using redis or memcached adapters, you can configure it using DSN:
46+
# When using Redis or memcached adapter, you can configure it using DSN:
8547
# - https://symfony.com/doc/4.4/components/cache/adapters/redis_adapter.html#configure-the-connection
8648
# - https://symfony.com/doc/4.4/components/cache/adapters/memcached_adapter.html#configure-the-connection
8749
CACHE_DSN=localhost
8850
CACHE_NAMESPACE=ezp
8951
DATABASE_CHARSET=utf8mb4
9052
DATABASE_COLLATION=utf8mb4_unicode_520_ci
91-
# Needed by Doctrine Bundle / ORM to avoid it opening connection during situations where there is no service yet.
53+
# Needed by Doctrine Bundle / ORM to prevent it from opening a connection during situations where there is no service yet.
9254
# See: https://symfony.com/doc/current/reference/configuration/doctrine.html#doctrine-dbal-configuration
9355
DATABASE_VERSION=mariadb-10.3.0
9456
SESSION_HANDLER_ID=session.handler.native_file
@@ -106,15 +68,17 @@ SEARCH_ENGINE=legacy
10668
HTTPCACHE_DEFAULT_TTL=86400
10769
HTTPCACHE_PURGE_SERVER=http://localhost:80
10870
HTTPCACHE_VARNISH_INVALIDATE_TOKEN=
71+
# Uncomment following line if you want to enable translation-aware behavior for HTTP cache.
72+
# HTTPCACHE_TRANSLATION_AWARE_ENABLED=true
10973
CACHE_POOL=cache.tagaware.filesystem
110-
# When using redis or memcached adapters, you can configure it using DSN:
74+
# When using Redis or memcached adapter, you can configure it using DSN:
11175
# - https://symfony.com/doc/4.4/components/cache/adapters/redis_adapter.html#configure-the-connection
11276
# - https://symfony.com/doc/4.4/components/cache/adapters/memcached_adapter.html#configure-the-connection
11377
CACHE_DSN=localhost
11478
CACHE_NAMESPACE=ezp
11579
DATABASE_CHARSET=utf8mb4
11680
DATABASE_COLLATION=utf8mb4_unicode_520_ci
117-
# Needed by Doctrine Bundle / ORM to avoid it opening connection during situations where there is no service yet.
81+
# Needed by Doctrine Bundle / ORM to prevent it from opening a connection during situations where there is no service yet.
11882
# See: https://symfony.com/doc/current/reference/configuration/doctrine.html#doctrine-dbal-configuration
11983
DATABASE_VERSION=mariadb-10.3.0
12084
SESSION_HANDLER_ID=session.handler.native_file
@@ -135,7 +99,7 @@ SISO_SEARCH_SOLR_CORE=collection1
13599
# Do not add 'solr' to the path. It is automatically added by SolariumBundle
136100
SISO_SEARCH_SOLR_PATH=
137101
# SolariumBundle Solr DSN configuration
138-
# Note that /solr suffix will be appended autmatically to eZ Platform Solr Search Engine Bundle configuration
102+
# Note that the /solr suffix will be appended automatically to eZ Platform Solr Search Engine Bundle configuration
139103
SOLR_DSN=http://${SISO_SEARCH_SOLR_HOST}:${SISO_SEARCH_SOLR_PORT}${SISO_SEARCH_SOLR_PATH}
140104
JMS_PAYMENT_SECRET=def00000706ea7318427e72fcea2c8ceb86773a4310e35119c48e3029196acfead1ba8cc898f48d1ef9cb3f7ebe191ab46eaf67ec94a2b6bd17c079ac7277de0175b9e3e
141105
###< ibexa/content ###
@@ -149,15 +113,17 @@ SEARCH_ENGINE=legacy
149113
HTTPCACHE_DEFAULT_TTL=86400
150114
HTTPCACHE_PURGE_SERVER=http://localhost:80
151115
HTTPCACHE_VARNISH_INVALIDATE_TOKEN=
116+
# Uncomment following line if you want to enable translation-aware behavior for HTTP cache.
117+
# HTTPCACHE_TRANSLATION_AWARE_ENABLED=true
152118
CACHE_POOL=cache.tagaware.filesystem
153-
# When using redis or memcached adapters, you can configure it using DSN:
119+
# When using Redis or memcached adapter, you can configure it using DSN:
154120
# - https://symfony.com/doc/4.4/components/cache/adapters/redis_adapter.html#configure-the-connection
155121
# - https://symfony.com/doc/4.4/components/cache/adapters/memcached_adapter.html#configure-the-connection
156122
CACHE_DSN=localhost
157123
CACHE_NAMESPACE=ezp
158124
DATABASE_CHARSET=utf8mb4
159125
DATABASE_COLLATION=utf8mb4_unicode_520_ci
160-
# Needed by Doctrine Bundle / ORM to avoid it opening connection during situations where there is no service yet.
126+
# Needed by Doctrine Bundle / ORM to prevent it from opening a connection during situations where there is no service yet.
161127
# See: https://symfony.com/doc/current/reference/configuration/doctrine.html#doctrine-dbal-configuration
162128
DATABASE_VERSION=mariadb-10.3.0
163129
SESSION_HANDLER_ID=session.handler.native_file
@@ -177,7 +143,47 @@ SISO_SEARCH_SOLR_CORE=collection1
177143
# Do not add 'solr' to the path. It is automatically added by SolariumBundle
178144
SISO_SEARCH_SOLR_PATH=
179145
# SolariumBundle Solr DSN configuration
180-
# Note that /solr suffix will be appended autmatically to eZ Platform Solr Search Engine Bundle configuration
146+
# Note that the /solr suffix will be appended automatically to eZ Platform Solr Search Engine Bundle configuration
181147
SOLR_DSN=http://${SISO_SEARCH_SOLR_HOST}:${SISO_SEARCH_SOLR_PORT}${SISO_SEARCH_SOLR_PATH}
182148
JMS_PAYMENT_SECRET=def00000706ea7318427e72fcea2c8ceb86773a4310e35119c48e3029196acfead1ba8cc898f48d1ef9cb3f7ebe191ab46eaf67ec94a2b6bd17c079ac7277de0175b9e3e
183149
###< ibexa/experience ###
150+
151+
###> google/recaptcha ###
152+
# To use Google Recaptcha, you must register a site on Recaptcha's admin panel:
153+
# https://www.google.com/recaptcha/admin
154+
GOOGLE_RECAPTCHA_SITE_KEY=
155+
GOOGLE_RECAPTCHA_SECRET=
156+
###< google/recaptcha ###
157+
158+
###> excelwebzone/recaptcha-bundle ###
159+
EWZ_RECAPTCHA_SITE_KEY=
160+
EWZ_RECAPTCHA_SECRET=
161+
###< excelwebzone/recaptcha-bundle ###
162+
163+
###> nelmio/cors-bundle ###
164+
CORS_ALLOW_ORIGIN='^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
165+
###< nelmio/cors-bundle ###
166+
167+
###> symfony/swiftmailer-bundle ###
168+
# For Gmail as a transport, use: "gmail://username:password@localhost"
169+
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
170+
# Delivery is disabled by default via "null://localhost"
171+
MAILER_URL=null://localhost
172+
###< symfony/swiftmailer-bundle ###
173+
174+
###> lexik/jwt-authentication-bundle ###
175+
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
176+
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
177+
JWT_PASSPHRASE=9e36a8950a71c5a5873b69a41260d73d
178+
###< lexik/jwt-authentication-bundle ###
179+
180+
###> symfony/lock ###
181+
# Choose one of the stores below
182+
# postgresql+advisory://db_user:db_password@localhost/db_name
183+
LOCK_DSN=semaphore
184+
###< symfony/lock ###
185+
186+
###> nelmio/solarium-bundle ###
187+
SOLR_HOST=localhost
188+
SOLR_CORE=example
189+
###< nelmio/solarium-bundle ###

.env.local.template

-19
This file was deleted.

.gitignore

-10
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
###< symfony/framework-bundle ###
1111

1212
###> symfony/phpunit-bridge ###
13-
.phpunit
1413
.phpunit.result.cache
1514
/phpunit.xml
1615
###< symfony/phpunit-bridge ###
@@ -34,12 +33,3 @@
3433
npm-debug.log
3534
yarn-error.log
3635
###< symfony/webpack-encore-bundle ###
37-
38-
###> adriendupuis/ezplatform-ee-docker ###
39-
auth.json
40-
ide-twig.json
41-
/config/graphql/
42-
/public/assets/build/*
43-
/public/assets/ezplatform/build/*
44-
/public/assets/translations/*
45-
###< adriendupuis/ezplatform-ee-docker ###

COPYRIGHT

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Copyright (C) 1999-2020 Ibexa AS (formerly eZ Systems AS). All rights reserved.
33
This source code is available separately under the following licenses:
44

55
A - Ibexa Business Use License Agreement (Ibexa BUL),
6-
version 2.3 or later versions (as license terms may be updated from time to time)
6+
version 2.4 or later versions (as license terms may be updated from time to time)
77
Ibexa BUL is granted by having a valid Ibexa DXP (formerly eZ Platform Enterprise) subscription,
88
as described at: https://www.ibexa.co/product
99
For the full Ibexa BUL license text, please see:

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Copyright (C) 1999-2020 Ibexa AS (formerly eZ Systems AS). All rights reserved.
33
This source code is available separately under the following licenses:
44

55
A - Ibexa Business Use License Agreement (Ibexa BUL),
6-
version 2.3 or later versions (as license terms may be updated from time to time)
6+
version 2.4 or later versions (as license terms may be updated from time to time)
77
Ibexa BUL is granted by having a valid Ibexa DXP (formerly eZ Platform Enterprise) subscription,
88
as described at: https://www.ibexa.co/product
99
For the full Ibexa BUL license text, please see:

LICENSE-bul

+11-19
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Ibexa Business Use License Agreement ("Ibexa BUL") Version 2.3
1+
Ibexa Business Use License Agreement ("Ibexa BUL") Version 2.4
22

33

44
IMPORTANT: Please read the following license agreement carefully.
55

66
This Ibexa Business License Agreement (“Ibexa BUL”) is between Ibexa AS
7-
(Norwegian business registration no. 981601564, formerly eZ Systems AS),
8-
a Norwegian company ("Licensor", “Ibexa” or “we”), and the customer ("Licensee"
7+
(Norwegian business registration no. 981601564), a Norwegian company
8+
("Licensor", “Ibexa” or “we”), and the customer ("Licensee"
99
or "you"). By installing all or any portion of the Licensed Software (or
1010
authorizing any other person to do so), you accept the terms and conditions of
1111
this Ibexa BUL. If you acquired the Licensed Software without an opportunity to
@@ -25,20 +25,15 @@ eZ Publish Platform) downloaded, ordered or otherwise legally acquired
2525

2626
"Licensed Copy" means one sample of the Licensed Software.
2727

28-
"Subscription Agreement" means the Ibexa Digital Experience Platform (DXP)
29-
Subscription Agreement, or other applicable Ibexa subscription (such as eZ
30-
Enterprise or eZ Platform Enterprise Subscription Agreement), entitling
31-
you to a BUL to the Licensed Software.
32-
3328
2. License grant
3429

3530
2.1 You may
3631
If you have entered into an Ibexa Subscription Agreement, you have paid the
3732
correct fees and you comply with the terms of this Ibexa BUL, we grant you a
3833
limited, non-exclusive and non-transferable right to:
3934

40-
(a) install and run the Licensed Copy on the agreed number of websites
41-
or with the agreed number of database content objects; and
35+
(a) install and run the Licensed Copy according to the terms
36+
defined by the Ibexa Subscription Agreement
4237

4338
(b) modify or make improvements, patches, workarounds and bug fixes
4439
(collectively "Licensee Modifications") to the Licensed Copy, or permit
@@ -78,11 +73,8 @@ not use the Licensed Software.
7873
Please see the Ibexa Subscription Agreement for the prices and terms of payment,
7974
that apply.
8075

81-
Within six months of the termination or expiration of any such Ibexa
82-
Subscription Agreement, all use of the Licensed Software has to stop,
83-
unless the Ibexa Subscription Agreement is renewed within such six month
84-
period. During this six month period, Ibexa is not liable for any loss
85-
or damage (of any kind) with you.
76+
All use of the Licensed Software has to stop immediately after the termination or
77+
expiration of any such Ibexa Subscription Agreement.
8678

8779
5. Audit rights
8880
To make sure everyone is contributing their part to enable us to
@@ -115,7 +107,7 @@ Software, and confirm the destruction within 7 (seven) days.
115107
7. Intellectual property rights
116108
You agree that no copyright, other intellectual property or proprietary
117109
rights in the Licensed Software and related documentation are
118-
transferred to you. No trademarks of Ibexa may be used by you without Ibexa’
110+
transferred to you. No trademarks of Ibexa may be used by you without Ibexa’s
119111
express written permission. If permission is granted, use must always
120112
take place in accordance with our guidelines as they may be updated from
121113
time to time. For Licensee Modifications, you must, in the modified
@@ -132,7 +124,7 @@ accuracy of informational content. We do not warrant that the Licensed
132124
Software will meet your requirements or that the operation of it will be
133125
uninterrupted or error-free, or that errors will be corrected. The
134126
entire risk of the Licensed Software's quality and performance is
135-
therefore with you
127+
therefore with you.
136128

137129
9. Limitation of liability
138130
To the extent permitted by law, we do not have liability with respect to
@@ -159,7 +151,7 @@ any third party supplier Ibexa is distributing software for, or other
159151
licensee, alleging that the Licensed Software infringes a patent.
160152

161153
10.2 Transfer
162-
Without Ibexa’ written permission, you may not sublicense or otherwise
154+
Without Ibexa’s written permission, you may not sublicense or otherwise
163155
transfer your rights and obligations under this Ibexa BUL to any other
164156
person or party. Any attempt by you to do so, will terminate this Ibexa BUL
165157
without further notice. Ibexa may assign its rights hereunder at any time
@@ -210,7 +202,7 @@ You are responsible for complying with any applicable local laws,
210202
including export and import regulations.
211203

212204
10.7 Entire agreement
213-
This Ibexa BUL comprises the entire agreement, and replaces all earlier
205+
This Ibexa BUL and Ibexa Subscription Agreement comprise the entire agreement, and replace all earlier
214206
proposals, understandings and agreements, oral and written, between us.
215207

216208
10.8 Update of terms

assets/bootstrap.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import { startStimulusApp } from '@symfony/stimulus-bridge';
2-
import '@symfony/autoimport';
32

43
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
5-
export const app = startStimulusApp(require.context('./controllers', true, /\.(j|t)sx?$/));
4+
export const app = startStimulusApp(require.context(
5+
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
6+
true,
7+
/\.[jt]sx?$/
8+
));
9+
10+
// register any custom, 3rd party controllers here
11+
// app.register('some_controller_name', SomeImportedController);

assets/controllers/hello_controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Controller } from 'stimulus';
1+
import { Controller } from '@hotwired/stimulus';
22

33
/*
44
* This is an example Stimulus controller!

bin/console

100755100644
+7-33
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,15 @@
33

44
use App\Kernel;
55
use Symfony\Bundle\FrameworkBundle\Console\Application;
6-
use Symfony\Component\Console\Input\ArgvInput;
7-
use Symfony\Component\Dotenv\Dotenv;
8-
use Symfony\Component\ErrorHandler\Debug;
96

10-
if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
11-
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
7+
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
8+
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
129
}
1310

14-
set_time_limit(0);
11+
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
1512

16-
require dirname(__DIR__).'/vendor/autoload.php';
13+
return function (array $context) {
14+
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
1715

18-
if (!class_exists(Application::class) || !class_exists(Dotenv::class)) {
19-
throw new LogicException('You need to add "symfony/framework-bundle" and "symfony/dotenv" as Composer dependencies.');
20-
}
21-
22-
$input = new ArgvInput();
23-
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
24-
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
25-
}
26-
27-
if ($input->hasParameterOption('--no-debug', true)) {
28-
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
29-
}
30-
31-
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
32-
33-
if ($_SERVER['APP_DEBUG']) {
34-
umask(0000);
35-
36-
if (class_exists(Debug::class)) {
37-
Debug::enable();
38-
}
39-
}
40-
41-
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
42-
$application = new Application($kernel);
43-
$application->run($input);
16+
return new Application($kernel);
17+
};

0 commit comments

Comments
 (0)