adt / nette-tracy-component-locator
Installs: 4 549
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 13
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- tracy/tracy: ^2.4
This package is auto-updated.
Last update: 2024-11-15 16:19:20 UTC
README
Install with the composer require --dev adt/nette-tracy-component-locator
command.
Add this to your project, for example to BasePresenter::afterRender
method:
if (class_exists('\ADT\ComponentLocator\ComponentLocator')) { \ADT\ComponentLocator\ComponentLocator::initializePanel($this); }
Be sure to have something like this in your local neon:
tracy:
editor: "phpstorm://open?file=%file&line=%line"
#editor: 'editor://%action/?file=%file&line=%line&search=%search&replace=%replace'
editorMapping:
/var/www/html/: /your/real/path/to/project/
bar:
- \ADT\ComponentLocator\ComponentLocator
On Ubuntu the editor path should be like this: phpstorm://open?url=file://%file&line=%line
.
Parameter editorMapping
is needed only if the project runs in Docker.