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

How to override vendor directory location#4643

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
weaverryan merged 3 commits intosymfony:2.3fromgajdaw:override-vendor-directory-location
Jan 16, 2015
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
35 changes: 35 additions & 0 deletionscookbook/configuration/override_dir_structure.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -154,3 +154,38 @@ the ``extra.symfony-web-dir`` option in the ``composer.json`` file:

$ php app/console cache:clear --env=prod
$ php app/console assetic:dump --env=prod --no-debug

Override the ``vendor`` Directory
---------------------------------

To override the ``vendor`` directory you have to introduce changes in the
following files:

* ``app/autoload.php``
* ``composer.json``

The change in the ``composer.json`` takes the form:

.. code-block:: json

{
...
"config": {
"bin-dir": "bin",
"vendor-dir": "/some/dir/vendor"
},
...
}

In ``app/autoload.php`` you need to modify the path leading to ``vendor/autoload.php``
file::

// app/autoload.php
// ...
$loader = require '/some/dir/vendor/autoload.php';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We should add a placeholder comment (// ...) after this line to indicate that we don't show the complete file.


.. tip::

This modification can be of interest if you work using virtual environment
and cannot use NFS. For example, when running Symfony app using Vagrant/VirtualBox
guest operating system.

[8]ページ先頭

©2009-2025 Movatter.jp