/** * Bind this express context to the given view model triggering a context-bound event * in the process. * * @param ViewModelInterface $model */ public function bind(ViewModelInterface $model) { $this->scoped['@file'] = $model->getResource(); $this->scoped['@model'] = $this->model = $model; $this->scoped['@context'] = $this; $this->renderer->triggerContextBound($this); }
/** * {@inheritdoc} */ public function findAll() { return $this->renderer->findAll(); }