ublaboo / web-passage
Saving web passage: small util for Nette Framework
v1.0.1
2016-07-02 15:39 UTC
Requires
- nette/http: ^2.3|^2.4
This package is auto-updated.
Last update: 2024-12-21 01:01:58 UTC
README
WebPassage
Saving web passage: small util for Nette Framework
Config.neon:
services: - Ublaboo\WebPassage\WebPassage
Usage:
/** * @var Ublaboo\WebPassage\WebPassage * @inject */ public $webPassage; public function startup() { parent::startup(); $this->webPassage->saveState(); }
Now when you need list of your website passage, you can get it by calling WebPassage::getPassage
:
/** * Maximum size of passage array is 40 */ $webPassage->getPassage($size = 10, $include_host = TRUE);