public function __construct() { parent::__construct(); $self = $this; $this->add(new Link('home', function () use($self) { $self->setPage(HomePage::getIdentifier()); })); $files = array('index.php', 'assets/AbstractPage.php', 'assets/AbstractPage.html', 'assets/SamplePageClassAuthorisationStrategy.php'); $files = array_merge($files, $this->getInvolvedFiles()); $sourceLink = new Link('source', function () use($self, $files) { $self->setPage(new SourcePage($files)); }); $sourceLink->setPopupSettings(new PopupSettings('Source Code', '900px', '600px')); $this->add($sourceLink); }
public function renderHead(HeaderResponse $headerResponse) { parent::renderHead($headerResponse); $headerResponse->renderCSSFile('css/source.css'); }