geniv/nette-tracy-clean

Tracy clean extension for Nette Framework

v1.1.1 2018-04-17 19:46 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 new window:
            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;