Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

remove getPublicDir() documentation#12908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 1 commit intosymfony:4.4fromxabbuh:symfony-32845
Jan 12, 2020
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletionsbundles.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -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
``<your-bundle>/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 <your-bundle>/public/ instead of <your-bundle>/Resources/public/)
public function getPublicDir(): string
{
return 'public/';
}
}

.. versionadded:: 4.4

The ``getPublicDir()`` method was introduced in Symfony 4.4.

Learn more
----------

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp