geniv/nette-tracy-clean

Tracy clean extension for Nette Framework

v1.1.3 2018-05-05 16:02 UTC

README

Installation

$ composer require geniv/nette-tracy-clean

or

"geniv/nette-tracy-clean": ">=1.0.0"

require:

"php": ">=5.6.0",
"nette/nette": ">=2.4.0"

Include in application

neon configure:

# tracy clean
tracyClean:
#    tracyClean: true
#    disableDebug: true
#    error404: true
#    error500: true
#    error503: true
#    maintenance: true
    link:
        Old clean:
            url: "clean.php"
            target: _blank
            confirm: "Opravdu promazat?"
        Admin:
            url: "admin/"
            target: _blank
#        Admin2:
#            url: "admin/"
#            target: _self
#        Admin: "admin/"
#        Pokus:
#            link: Homepage:vzor

neon configure extension (it is possible use anonymous extension):

extensions:
    tracyClean: TracyClean\Bridges\Nette\Extension
#   - TracyClean\Bridges\Nette\Extension

presenters (in case use named extension):

use TracyClean\TracyClean;

class BasePresenter extends Presenter
{
    use AutowiredComponent;
    use TracyClean;