adt / nette-tracy-component-locator
Installs: 6 355
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 0
Open Issues: 0
pkg:composer/adt/nette-tracy-component-locator
Requires
- php: >=7.1
- tracy/tracy: ^2.4
This package is auto-updated.
Last update: 2025-10-15 18:28:47 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.