Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SomethingFacade extends Nette\Object
- {
- protected $section;
- protected $parser;
- protected $io;
- public function __construct(
- CleverDic\Model\Sections $section,
- CleverDic\Model\Parser $parser,
- CleverDic\Model\IO $io
- )
- {
- $this->section = $section;
- $this->parser = $parser;
- $this->io = $io;
- }
- public function operationOne($data)
- {
- $this->...
- }
- }
- ##########################
- class HomepagePresenter extends BasePresenter
- {
- public function __construct(SomethingFacade $facade, Container $container)
- {
- parent::__...
- $this->...
- }
- public function actionDefault($id)
- {
- $this->facade->operationOne($id);
- //...
- }
- // ...
- }
Advertisement
Add Comment
Please, Sign In to add comment