Skip to content

Commit 8988f48

Browse files
committed
chore(dependencies): Remove symfony/asset-mapper and update related packages; clean up .gitignore and composer files
1 parent b41f7d8 commit 8988f48

16 files changed

Lines changed: 179 additions & 249 deletions

File tree

examples/dotcms-symfony/.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
###> symfony/framework-bundle ###
32
/.env.local
43
/.env.local.php
@@ -18,12 +17,6 @@
1817
.phpunit.result.cache
1918
/phpunit.xml
2019
###< symfony/phpunit-bridge ###
21-
22-
###> symfony/asset-mapper ###
23-
/public/assets/
24-
/assets/vendor/
25-
###< symfony/asset-mapper ###
26-
2720
###> symfony/webpack-encore-bundle ###
2821
/node_modules/
2922
/public/build/
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
import { startStimulusApp } from '@symfony/stimulus-bundle';
1+
import { startStimulusApp } from '@symfony/stimulus-bridge';
22

3-
const app = startStimulusApp();
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+
/\.[jt]sx?$/
8+
));
49
// register any custom, 3rd party controllers here
510
// app.register('some_controller_name', SomeImportedController);

examples/dotcms-symfony/assets/controllers/csrf_protection_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const nameCheck = /^[-_a-zA-Z0-9]{4,22}$/;
2-
const tokenCheck = /^[-_\/+a-zA-Z0-9]{24,}$/;
2+
const tokenCheck = /^[-_/+a-zA-Z0-9]{24,}$/;
33

44
// Generate and double-submit a CSRF token in a form field and a cookie, as defined by Symfony's SameOriginCsrfTokenManager
55
document.addEventListener('submit', function (event) {

examples/dotcms-symfony/assets/vendor/@hotwired/stimulus/stimulus.index.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dotcms-symfony/assets/vendor/@hotwired/turbo/turbo.index.js

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php return array (
2+
'@hotwired/stimulus' =>
3+
array (
4+
'version' => '3.2.2',
5+
'dependencies' =>
6+
array (
7+
),
8+
'extraFiles' =>
9+
array (
10+
),
11+
),
12+
'@hotwired/turbo' =>
13+
array (
14+
'version' => '7.3.0',
15+
'dependencies' =>
16+
array (
17+
),
18+
'extraFiles' =>
19+
array (
20+
),
21+
),
22+
);

examples/dotcms-symfony/composer.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"phpdocumentor/reflection-docblock": "^5.6.2",
1616
"phpstan/phpdoc-parser": "^2.1",
1717
"symfony/asset": "7.2.*",
18-
"symfony/asset-mapper": "7.2.*",
1918
"symfony/console": "7.2.*",
2019
"symfony/doctrine-messenger": "7.2.*",
2120
"symfony/dotenv": "7.2.*",
@@ -35,11 +34,11 @@
3534
"symfony/runtime": "7.2.*",
3635
"symfony/security-bundle": "7.2.*",
3736
"symfony/serializer": "7.2.*",
38-
"symfony/stimulus-bundle": "^2.26.1",
37+
"symfony/stimulus-bundle": "^2.27",
3938
"symfony/string": "7.2.*",
4039
"symfony/translation": "7.2.*",
4140
"symfony/twig-bundle": "7.2.*",
42-
"symfony/ux-turbo": "^2.26.1",
41+
"symfony/ux-turbo": "^2.27",
4342
"symfony/validator": "7.2.*",
4443
"symfony/web-link": "7.2.*",
4544
"symfony/webpack-encore-bundle": "^2.2",
@@ -79,8 +78,7 @@
7978
"scripts": {
8079
"auto-scripts": {
8180
"cache:clear": "symfony-cmd",
82-
"assets:install %PUBLIC_DIR%": "symfony-cmd",
83-
"importmap:install": "symfony-cmd"
81+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
8482
},
8583
"post-install-cmd": [
8684
"@auto-scripts"

examples/dotcms-symfony/composer.lock

Lines changed: 13 additions & 173 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dotcms-symfony/config/bundles.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
88
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
99
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
10-
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
11-
Symfony\UX\Turbo\TurboBundle::class => ['all' => true],
1210
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
1311
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
1412
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
1513
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
1614
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
15+
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
16+
Symfony\UX\Turbo\TurboBundle::class => ['all' => true],
1717
];

examples/dotcms-symfony/config/packages/asset_mapper.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)