From e3fa2e6a368c8a4922c7f4c296cd22cba4999407 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 9 Jan 2020 10:06:37 +0100 Subject: [PATCH] remove getPublicDir() documentation --- bundles.rst | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/bundles.rst b/bundles.rst index c7a836481e5..21ecea9f606 100644 --- a/bundles.rst +++ b/bundles.rst @@ -117,35 +117,6 @@ database, create and validate forms, create translations for your application, write tests and much more. Each of these has their own place and role within the bundle. -Overridding the Bundle Directory Structure -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Some of the bundle directories are conventions that can be overridden if needed. -For example, the **public directory**, which by default is located at -``/Resources/public/``, can be changed by defining the -``getPublicDir()`` method in the bundle class:: - - // src/Acme/TestBundle/AcmeTestBundle.php - namespace App\Acme\TestBundle; - - use Symfony\Component\HttpKernel\Bundle\Bundle; - - class AcmeTestBundle extends Bundle - { - // ... - - // the returned value must be relative to the bundle root directory - // (public dir is now /public/ instead of /Resources/public/) - public function getPublicDir(): string - { - return 'public/'; - } - } - -.. versionadded:: 4.4 - - The ``getPublicDir()`` method was introduced in Symfony 4.4. - Learn more ----------