File tree Expand file tree Collapse file tree 4 files changed +17
-8
lines changed
snippets/tutorial/basic-app/files Expand file tree Collapse file tree 4 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 11<?php
2+
23// include config
34/** @noinspection PhpIncludeInspection */
4- require_once (dirname ( __FILE__ ). '/config.inc.php ' );
5+ require_once (__DIR__ . '/config.inc.php ' );
56
67// include wcf
78/** @noinspection PhpIncludeInspection */
8- require_once (RELATIVE_WCF_DIR . 'global.php ' );
9+ require_once (RELATIVE_WCF_DIR . 'global.php ' );
Original file line number Diff line number Diff line change 11<?php
2+
23require_once ('./global.php ' );
34wcf \system \request \RequestHandler::getInstance ()->handle ('app ' );
Original file line number Diff line number Diff line change 11<?php
2+
23namespace app \page ;
4+
35use wcf \page \AbstractPage ;
46
5- class ExamplePage extends AbstractPage {}
7+ class ExamplePage extends AbstractPage
8+ {
9+ }
Original file line number Diff line number Diff line change 11<?php
2+
23namespace app \system ;
4+
35use app \page \ExamplePage ;
46use wcf \system \application \AbstractApplication ;
57
6- class APPCore extends AbstractApplication {
7- /**
8- * @inheritDoc
9- */
10- protected $ primaryController = ExamplePage::class;
8+ class APPCore extends AbstractApplication
9+ {
10+ /**
11+ * @inheritDoc
12+ */
13+ protected $ primaryController = ExamplePage::class;
1114}
You can’t perform that action at this time.
0 commit comments