Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=
APP_SHARE_DIR=$APP_PROJECT_DIR/var/share
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
Expand All @@ -32,3 +33,9 @@ DATABASE_URL="sqlite:///%kernel.project_dir%/data/database.sqlite"
###> symfony/mailer ###
MAILER_DSN=null://null
###< symfony/mailer ###

###> symfony/routing ###
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
DEFAULT_URI=http://localhost
###< symfony/routing ###
2 changes: 1 addition & 1 deletion assets/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// start the Stimulus application
import './bootstrap.js';
import './stimulus_bootstrap.js';
import './styles/app.scss';
import 'highlight.js/styles/github-dark-dimmed.css';
import 'lato-font/css/lato-font.css';
Expand Down
2 changes: 1 addition & 1 deletion assets/controllers/csrf_protection_controller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const nameCheck = /^[-_a-zA-Z0-9]{4,22}$/;
const tokenCheck = /^[-_/+a-zA-Z0-9]{24,}$/;
const tokenCheck = /^[-_\/+a-zA-Z0-9]{24,}$/;

// Generate and double-submit a CSRF token in a form field and a cookie, as defined by Symfony's SameOriginCsrfTokenManager
document.addEventListener('submit', function (event) {
Expand Down
1 change: 1 addition & 0 deletions assets/bootstrap.js → assets/stimulus_bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { startStimulusApp } from '@symfony/stimulus-bundle';

const app = startStimulusApp();

// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"type": "project",
"description": "Symfony Demo Application",
"minimum-stability": "stable",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.2",
Expand Down Expand Up @@ -111,7 +111,7 @@
"extra": {
"symfony": {
"allow-contrib": true,
"require": "7.3.*"
"require": "7.4.*"
}
}
}
Loading
Loading