Skip to content

Commit d724fef

Browse files
committed
Revolutionizing the User Interface by Integrating the Core.ui Theme into the Application
1 parent 078f097 commit d724fef

File tree

1,325 files changed

+81660
-1248
lines changed

Some content is hidden

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

1,325 files changed

+81660
-1248
lines changed

.env

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,24 @@
1818
APP_ENV=dev
1919
APP_SECRET=adf8502896f25d58b3e4b57625673065
2020
###< symfony/framework-bundle ###
21+
22+
###> doctrine/doctrine-bundle ###
23+
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
24+
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
25+
#
26+
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
27+
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4"
28+
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
29+
DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
30+
###< doctrine/doctrine-bundle ###
31+
32+
###> symfony/messenger ###
33+
# Choose one of the transports below
34+
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
35+
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
36+
MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
37+
###< symfony/messenger ###
38+
39+
###> symfony/mailer ###
40+
# MAILER_DSN=null://null
41+
###< symfony/mailer ###

.env.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# define your env variables for the test env here
2+
KERNEL_CLASS='App\Kernel'
3+
APP_SECRET='$ecretf0rt3st'
4+
SYMFONY_DEPRECATIONS_HELPER=999999
5+
PANTHER_APP_ENV=panther
6+
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,18 @@
88
/var/
99
/vendor/
1010
###< symfony/framework-bundle ###
11+
12+
###> phpunit/phpunit ###
13+
/phpunit.xml
14+
.phpunit.result.cache
15+
###< phpunit/phpunit ###
16+
17+
###> symfony/phpunit-bridge ###
18+
.phpunit.result.cache
19+
/phpunit.xml
20+
###< symfony/phpunit-bridge ###
21+
22+
###> symfony/asset-mapper ###
23+
/public/assets/
24+
/assets/vendor/
25+
###< symfony/asset-mapper ###

assets/app.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import './bootstrap.js';
2+
/*
3+
* Welcome to your app's main JavaScript file!
4+
*
5+
* This file will be included onto the page via the importmap() Twig function,
6+
* which should already be in your base.html.twig.
7+
*/
8+
import './styles/app.css';
9+
10+
console.log('This log comes from assets/app.js - welcome to AssetMapper! 🎉');

assets/bootstrap.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { startStimulusApp } from '@symfony/stimulus-bundle';
2+
3+
const app = startStimulusApp();
4+
// register any custom, 3rd party controllers here
5+
// app.register('some_controller_name', SomeImportedController);

assets/controllers.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"controllers": {
3+
"@symfony/ux-turbo": {
4+
"turbo-core": {
5+
"enabled": true,
6+
"fetch": "eager"
7+
},
8+
"mercure-turbo-stream": {
9+
"enabled": false,
10+
"fetch": "eager"
11+
}
12+
}
13+
},
14+
"entrypoints": []
15+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { Controller } from '@hotwired/stimulus';
2+
3+
/*
4+
* This is an example Stimulus controller!
5+
*
6+
* Any element with a data-controller="hello" attribute will cause
7+
* this controller to be executed. The name "hello" comes from the filename:
8+
* hello_controller.js -> "hello"
9+
*
10+
* Delete this file or adapt it for your use!
11+
*/
12+
export default class extends Controller {
13+
connect() {
14+
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';
15+
}
16+
}

assets/styles/app.css

Whitespace-only changes.

bin/phpunit

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
if (!ini_get('date.timezone')) {
5+
ini_set('date.timezone', 'UTC');
6+
}
7+
8+
if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
9+
if (PHP_VERSION_ID >= 80000) {
10+
require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
11+
} else {
12+
define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
13+
require PHPUNIT_COMPOSER_INSTALL;
14+
PHPUnit\TextUI\Command::main();
15+
}
16+
} else {
17+
if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
18+
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
19+
exit(1);
20+
}
21+
22+
require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
23+
}

compose.override.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
services:
3+
###> doctrine/doctrine-bundle ###
4+
database:
5+
ports:
6+
- "5432"
7+
###< doctrine/doctrine-bundle ###
8+
9+
###> symfony/mailer ###
10+
mailer:
11+
image: axllent/mailpit
12+
ports:
13+
- "1025"
14+
- "8025"
15+
environment:
16+
MP_SMTP_AUTH_ACCEPT_ANY: 1
17+
MP_SMTP_AUTH_ALLOW_INSECURE: 1
18+
###< symfony/mailer ###

compose.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
services:
3+
###> doctrine/doctrine-bundle ###
4+
database:
5+
image: postgres:${POSTGRES_VERSION:-16}-alpine
6+
environment:
7+
POSTGRES_DB: ${POSTGRES_DB:-app}
8+
# You should definitely change the password in production
9+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}
10+
POSTGRES_USER: ${POSTGRES_USER:-app}
11+
volumes:
12+
- database_data:/var/lib/postgresql/data:rw
13+
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
14+
# - ./docker/db/data:/var/lib/postgresql/data:rw
15+
###< doctrine/doctrine-bundle ###
16+
17+
volumes:
18+
###> doctrine/doctrine-bundle ###
19+
database_data:
20+
###< doctrine/doctrine-bundle ###

composer.json

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,53 @@
77
"php": ">=8.1",
88
"ext-ctype": "*",
99
"ext-iconv": "*",
10+
"doctrine/dbal": "^3",
11+
"doctrine/doctrine-bundle": "^2.12",
12+
"doctrine/doctrine-migrations-bundle": "^3.3",
13+
"doctrine/orm": "^3.2",
14+
"phpdocumentor/reflection-docblock": "^5.4",
15+
"phpstan/phpdoc-parser": "^1.29",
16+
"symfony/asset": "6.4.*",
17+
"symfony/asset-mapper": "6.4.*",
1018
"symfony/console": "6.4.*",
19+
"symfony/doctrine-messenger": "6.4.*",
1120
"symfony/dotenv": "6.4.*",
21+
"symfony/expression-language": "6.4.*",
1222
"symfony/flex": "^2",
23+
"symfony/form": "6.4.*",
1324
"symfony/framework-bundle": "6.4.*",
25+
"symfony/http-client": "6.4.*",
26+
"symfony/intl": "6.4.*",
27+
"symfony/mailer": "6.4.*",
28+
"symfony/mime": "6.4.*",
29+
"symfony/monolog-bundle": "^3.0",
30+
"symfony/notifier": "6.4.*",
31+
"symfony/process": "6.4.*",
32+
"symfony/property-access": "6.4.*",
33+
"symfony/property-info": "6.4.*",
1434
"symfony/runtime": "6.4.*",
15-
"symfony/yaml": "6.4.*"
35+
"symfony/security-bundle": "6.4.*",
36+
"symfony/serializer": "6.4.*",
37+
"symfony/stimulus-bundle": "^2.19",
38+
"symfony/string": "6.4.*",
39+
"symfony/translation": "6.4.*",
40+
"symfony/twig-bundle": "6.4.*",
41+
"symfony/ux-turbo": "^2.19",
42+
"symfony/validator": "6.4.*",
43+
"symfony/web-link": "6.4.*",
44+
"symfony/yaml": "6.4.*",
45+
"twig/extra-bundle": "^2.12|^3.0",
46+
"twig/twig": "^2.12|^3.0"
1647
},
1748
"require-dev": {
49+
"phpunit/phpunit": "^9.5",
50+
"symfony/browser-kit": "6.4.*",
51+
"symfony/css-selector": "6.4.*",
52+
"symfony/debug-bundle": "6.4.*",
53+
"symfony/maker-bundle": "^1.60",
54+
"symfony/phpunit-bridge": "^7.1",
55+
"symfony/stopwatch": "6.4.*",
56+
"symfony/web-profiler-bundle": "6.4.*"
1857
},
1958
"config": {
2059
"allow-plugins": {
@@ -46,7 +85,8 @@
4685
"scripts": {
4786
"auto-scripts": {
4887
"cache:clear": "symfony-cmd",
49-
"assets:install %PUBLIC_DIR%": "symfony-cmd"
88+
"assets:install %PUBLIC_DIR%": "symfony-cmd",
89+
"importmap:install": "symfony-cmd"
5090
},
5191
"post-install-cmd": [
5292
"@auto-scripts"

0 commit comments

Comments
 (0)