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

Update 'ide' example in framework.rst#7513

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

Closed
harcod wants to merge7 commits intosymfony:3.2fromharcod:patch-1
Closed
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
16 changes: 11 additions & 5 deletionsreference/configuration/framework.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -214,8 +214,13 @@ ide
Symfony turns file paths seen in variable dumps and exception messages into
links that open those files right inside your browser. If you prefer to open
those files in your favorite IDE or text editor, set this option to any of the
following values: ``phpstorm`` (requires `PhpStormProtocol`_), ``sublime``,
``textmate``, ``macvim`` and ``emacs``.
following values: ``phpstorm``, ``sublime``, ``textmate``, ``macvim`` and ``emacs``.

.. note::

The ``phpstorm`` option is supported natively by PhpStorm on MacOS,
Windows requires `PhpStormProtocol`_,
and Linux requires `phpstorm-url-handler`_.

If you use another editor, the expected configuration value is a URL template
that contains an ``%f`` placeholder where the file path is expected and ``%l``
Expand All@@ -228,7 +233,7 @@ doubling them to prevent Symfony from interpreting them as container parameters)

# app/config/config.yml
framework:
ide: 'phpstorm://open?file=%%f&line=%%l'
ide: 'myide://open?url=file://%%f&line=%%l'

.. code-block:: xml

Expand All@@ -240,14 +245,14 @@ doubling them to prevent Symfony from interpreting them as container parameters)
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

<framework:config ide="phpstorm://open?file=%%f&line=%%l" />
<framework:config ide="myide://open?url=file://%%f&line=%%l" />
</container>

.. code-block:: php

// app/config/config.php
$container->loadFromExtension('framework', array(
'ide' => 'phpstorm://open?file=%%f&line=%%l',
'ide' => 'myide://open?url=file://%%f&line=%%l',
));

Since every developer uses a different IDE, the recommended way to enable this
Expand DownExpand Up@@ -1656,4 +1661,5 @@ Full Default Configuration
.. _`Doctrine Cache`: http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html
.. _`egulias/email-validator`: https://github.com/egulias/EmailValidator
.. _`PhpStormProtocol`: https://github.com/aik099/PhpStormProtocol
.. _`phpstorm-url-handler`: https://github.com/sanduhrs/phpstorm-url-handler
.. _`blue/green deployment`: http://martinfowler.com/bliki/BlueGreenDeployment.html

[8]ページ先頭

©2009-2025 Movatter.jp