Concerns: pushword/admin, pushword/admin-block-editor, pushword/core, pushword/flat, @pushword/js-helper
static/{main_host} directory instead of {main_host}.config/routes.yaml, replace resource: "@PushwordCoreBundle/Resources/config/routes/all.yaml" by resource: "@PushwordCoreBundle/Resources/config/routes.yaml"sed -i "s|@PushwordCoreBundle/Resources/config/routes/all.yaml|@PushwordCoreBundle/Resources/config/routes.yaml|g" ./config/routes.yaml
config/packages and compare it with the new one in vendor/pushword/dev-app/config/packages - flex add tons of config but you need to maintain them. Best practice is to remove theme and to keep framework.yaml (you can easily compare with the maintained one in the dev-app), pentatrion.yaml, twig.yaml, web_profiler.yaml, pushword.yaml .templates/base.html.twig file, if yes, remove it.rm media/*.{yaml,json} (we are now using a global index.csv)config/bundles.php the bundles related to Sonata : Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
Sonata\Form\Bridge\Symfony\SonataFormBundle::class => ['all' => true],
Sonata\Twig\Bridge\Symfony\SonataTwigBundle::class => ['all' => true],
Sonata\BlockBundle\SonataBlockBundle::class => ['all' => true],
Sonata\AdminBundle\SonataAdminBundle::class => ['all' => true],
Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle::class => ['all' => true],
config/packages/ directory (searched for sonata)The default installation is now creating. Look in vendor/pushword/core/install.php how to implement it in your project.
Scan all files inside the ./templates directory.
Identify and update every Tailwind CSS class name from version 3 syntax to version 4 syntax, ensuring full compatibility with Tailwind 4's new naming conventions and features.
https://tailwindcss.com/docs/upgrade-guide#changes-from-v3`)
./assets/webpack.config.js to ./vite.config.js See vendor/pushword/dev-app/vite.config.js./assets/package.json to ./package.jsoncomposer require pentatrion/vite-bundleconfig/packages/pushword.yaml# FROM
...
assets:
{
javascripts: ["/assets/app.js?6"],
stylesheets: ["/assets/style.css?65"],
},
# TO (adapt with your vite.config.js output)
assets:
{
vite_javascripts: ["app"],
vite_stylesheets: ["theme"],
},
app.css, upgrade it to tailwind v4 (see vendor/pushword/js-helper/src/app.css) - be careful with the @source paths.config/packages/, must be like this :pentatrion_vite:
build_directory: assets
Notes :
php bin/console pw:json-to-markdown --dry-run
php bin/console pw:json-to-markdown
# by host
php bin/console pw:json-to-markdown --host=example.com
# or by page id
php bin/console pw:json-to-markdown --page-id=123