dustin10 / VichUploaderBundle

A simple Symfony bundle to ease file uploads with ORM entities and ODM documents.
MIT License
1.83k stars 519 forks source link

Installation instructions are outdated #1431

Closed tacman closed 6 months ago

tacman commented 6 months ago

https://github.com/dustin10/VichUploaderBundle/blob/master/docs/installation.md#enable-the-bundle

These installation instructions are for old, unmaintained versions of Symfony:

// app/AppKernel.php (your kernel class may be defined in a different class/path)
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Vich\UploaderBundle\VichUploaderBundle(),
            // ...
        ];
    }
}
garak commented 6 months ago

Instructions are provided exactly for users of old versions. If you use a maintained version of Symfony, you're using Flex as well, and the bundle is enabled for you

tacman commented 6 months ago

Hmm. I was following the best practices suggestions here: https://symfony.com/doc/current/bundles/best_practices.html#installation-instructions

Since the bundle only works with Symfony 5.4+, I didn't think those old instructions applied.