Skip to content

0.3.0 — Flex auto-registration

Latest

Choose a tag to compare

@shyim shyim released this 30 Jul 20:20
0.3.0
182d017

Renames the bundle class so Symfony Flex registers it automatically.

Changed

The bundle class is now Shyim\SassoCompiler\SassoCompilerBundle (was ShyimSassoCompiler).

Flex builds an auto-generated recipe for any package it can identify as a bundle — no published recipe needed. But identification is a naming heuristic, not reflection: SymfonyBundle::extractClassNames() takes the PSR-4 prefix's last segment and appends Bundle, then isBundleClass() requires that exact file to exist. For Shyim\SassoCompiler\ that is SassoCompilerBundle.

The old name was unreachable — the heuristic never considers the vendor prefix — so Flex silently registered nothing. ShyimSassoCompiler was a Shopware convention (plugin class matches the directory) that stopped applying once this became a bundle.

On a Flex project, composer require shyim/sasso-shopware-compiler is now the whole install. Shopware projects are not Flex apps by default, so the manual path still works:

// config/bundles.php
Shyim\SassoCompiler\SassoCompilerBundle::class => ['all' => true],

Breaking

Upgrading from 0.2.0: update the class name in config/bundles.php, or the kernel fails to boot on a missing class.

-    Shyim\SassoCompiler\ShyimSassoCompiler::class => ['all' => true],
+    Shyim\SassoCompiler\SassoCompilerBundle::class => ['all' => true],

Upgrading from 0.1.0 (the Shopware-plugin release): uninstall the plugin first — see 0.2.0.