Skip to content

Commit 90e3cae

Browse files
committed
Premier commit.
1 parent 57b2c46 commit 90e3cae

File tree

317 files changed

+50031
-0
lines changed

Some content is hidden

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

317 files changed

+50031
-0
lines changed

.env

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# In all environments, the following files are loaded if they exist,
2+
# the latter taking precedence over the former:
3+
#
4+
# * .env contains default values for the environment variables needed by the app
5+
# * .env.local uncommitted file with local overrides
6+
# * .env.$APP_ENV committed environment-specific defaults
7+
# * .env.$APP_ENV.local uncommitted environment-specific overrides
8+
#
9+
# Real environment variables win over .env files.
10+
#
11+
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
12+
#
13+
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
14+
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
15+
16+
###> symfony/framework-bundle ###
17+
APP_ENV=dev
18+
APP_SECRET=de80fa9192aaf43ab7f783f1905e900d
19+
###< symfony/framework-bundle ###
20+
21+
###> symfony/webapp-meta ###
22+
MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
23+
###< symfony/webapp-meta ###
24+
25+
###> doctrine/doctrine-bundle ###
26+
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
27+
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
28+
#
29+
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
30+
DATABASE_URL="mysql://root:@127.0.0.1/easyadmin?serverVersion=10.4.14-MariaDB"
31+
# DATABASE_URL="postgresql://symfony:[email protected]:5432/app?serverVersion=13&charset=utf8"
32+
###< doctrine/doctrine-bundle ###
33+
34+
###> symfony/messenger ###
35+
# Choose one of the transports below
36+
# MESSENGER_TRANSPORT_DSN=doctrine://default
37+
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
38+
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
39+
###< symfony/messenger ###
40+
41+
###> symfony/mailer ###
42+
# MAILER_DSN=smtp://localhost
43+
###< symfony/mailer ###

assets/app.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Welcome to your app's main JavaScript file!
3+
*
4+
* We recommend including the built version of this JavaScript file
5+
* (and its CSS file) in your base layout (base.html.twig).
6+
*/
7+
8+
// any CSS you import will output into a single css file (app.css in this case)
9+
import './styles/app.css';
10+
11+
// start the Stimulus application
12+
import './bootstrap';

assets/bootstrap.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { startStimulusApp } from '@symfony/stimulus-bridge';
2+
3+
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
4+
export const app = startStimulusApp(require.context(
5+
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
6+
true,
7+
/\.(j|t)sx?$/
8+
));
9+
10+
// register any custom, 3rd party controllers here
11+
// app.register('some_controller_name', SomeImportedController);

assets/controllers.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"controllers": [],
3+
"entrypoints": []
4+
}
+16
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

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
background-color: lightgray;
3+
}

bin/console

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
use App\Kernel;
5+
use Symfony\Bundle\FrameworkBundle\Console\Application;
6+
7+
if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
8+
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
9+
}
10+
11+
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
12+
13+
return function (array $context) {
14+
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
15+
16+
return new Application($kernel);
17+
};

composer.json

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"type": "project",
3+
"license": "proprietary",
4+
"minimum-stability": "stable",
5+
"prefer-stable": true,
6+
"require": {
7+
"php": ">=8.0.2",
8+
"ext-ctype": "*",
9+
"ext-iconv": "*",
10+
"doctrine/annotations": "^1.0",
11+
"doctrine/doctrine-bundle": "^2.5",
12+
"doctrine/doctrine-migrations-bundle": "^3.2",
13+
"doctrine/orm": "^2.11",
14+
"easycorp/easyadmin-bundle": "^4.0",
15+
"phpdocumentor/reflection-docblock": "^5.3",
16+
"phpstan/phpdoc-parser": "^1.2",
17+
"sensio/framework-extra-bundle": "^6.1",
18+
"symfony/asset": "6.0.*",
19+
"symfony/console": "6.0.*",
20+
"symfony/doctrine-messenger": "6.0.*",
21+
"symfony/dotenv": "6.0.*",
22+
"symfony/expression-language": "6.0.*",
23+
"symfony/flex": "^2",
24+
"symfony/form": "6.0.*",
25+
"symfony/framework-bundle": "6.0.*",
26+
"symfony/http-client": "6.0.*",
27+
"symfony/intl": "6.0.*",
28+
"symfony/mailer": "6.0.*",
29+
"symfony/mime": "6.0.*",
30+
"symfony/monolog-bundle": "^3.0",
31+
"symfony/notifier": "6.0.*",
32+
"symfony/process": "6.0.*",
33+
"symfony/property-access": "6.0.*",
34+
"symfony/property-info": "6.0.*",
35+
"symfony/proxy-manager-bridge": "6.0.*",
36+
"symfony/runtime": "6.0.*",
37+
"symfony/security-bundle": "6.0.*",
38+
"symfony/serializer": "6.0.*",
39+
"symfony/string": "6.0.*",
40+
"symfony/translation": "6.0.*",
41+
"symfony/twig-bundle": "6.0.*",
42+
"symfony/validator": "6.0.*",
43+
"symfony/web-link": "6.0.*",
44+
"symfony/webapp-meta": "^1.0",
45+
"symfony/webpack-encore-bundle": "^1.12",
46+
"symfony/yaml": "6.0.*",
47+
"twig/extra-bundle": "^2.12|^3.0",
48+
"twig/twig": "^2.12|^3.0"
49+
},
50+
"config": {
51+
"allow-plugins": {
52+
"composer/package-versions-deprecated": true,
53+
"symfony/flex": true,
54+
"symfony/runtime": true
55+
},
56+
"optimize-autoloader": true,
57+
"preferred-install": {
58+
"*": "dist"
59+
},
60+
"sort-packages": true
61+
},
62+
"autoload": {
63+
"psr-4": {
64+
"App\\": "src/"
65+
}
66+
},
67+
"autoload-dev": {
68+
"psr-4": {
69+
"App\\Tests\\": "tests/"
70+
}
71+
},
72+
"replace": {
73+
"symfony/polyfill-ctype": "*",
74+
"symfony/polyfill-iconv": "*",
75+
"symfony/polyfill-php72": "*",
76+
"symfony/polyfill-php73": "*",
77+
"symfony/polyfill-php74": "*",
78+
"symfony/polyfill-php80": "*"
79+
},
80+
"scripts": {
81+
"auto-scripts": {
82+
"cache:clear": "symfony-cmd",
83+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
84+
},
85+
"post-install-cmd": [
86+
"@auto-scripts"
87+
],
88+
"post-update-cmd": [
89+
"@auto-scripts"
90+
]
91+
},
92+
"conflict": {
93+
"symfony/symfony": "*"
94+
},
95+
"extra": {
96+
"symfony": {
97+
"allow-contrib": false,
98+
"require": "6.0.*"
99+
}
100+
},
101+
"require-dev": {
102+
"symfony/debug-bundle": "6.0.*",
103+
"symfony/maker-bundle": "^1.0",
104+
"symfony/stopwatch": "6.0.*",
105+
"symfony/web-profiler-bundle": "6.0.*"
106+
}
107+
}

0 commit comments

Comments
 (0)