Simon André

Results 299 comments of Simon André

> but is it true that bundle assets are made available to asset mapper? Individually yes ``` $paths = $config['paths']; foreach ($container->getParameter('kernel.bundles_metadata') as $name => $bundle) { if ($container->fileExists($dir =...

The [doc](https://symfony.com/doc/6.4/frontend/asset_mapper.html#third-party-bundles-custom-asset-paths) with full sentences and less code 😅

Did you try with the configuration explained here : https://symfony.com/doc/current/frontend/asset_mapper.html#importing-assets-outside-of-the-assets-directory ?

And as usual i failed my copy/paste... this is the section that should help you : https://symfony.com/doc/current/frontend/asset_mapper.html#third-party-bundles-custom-asset-paths > All bundles that have a `Resources/public/` or `public/` directory will automatically have...

> instead of the rather more sensible bundles/awesomewysiwyg/awesome-wysiwyg.js Did you try ? Because according to the link i posted, it's exactly what's available. > but its imports will then likely...

So: If the bundle has precompiled assets, they are available via asset() and versionned If the bundle has non-precompiled assets, or if you want to import some file (JS or...

Oh that's not my intention, and i'm sorry if i made it feel that way ! Before AssetMapper, did you have a solution for this specific scenario (= a bundle...

Do you have a bundle example that match your needs, so i could try to test / play with and see what solutions can be found ?

I really think in that case the flex recipe is the best solution, allowing a Bundle to write some lines into the main importmap.php. If you want let's have a...

I fear this contradict the implementation of the [move()](https://github.com/symfony/symfony/blob/6234adbbe29aadcd6484b993473aa51a6e944d5f/src/Symfony/Component/HttpFoundation/File/UploadedFile.php#L178) method If `this->isValid()` returns `false`, with your change the method would throw an exception with no message. ```php /** * Moves...