@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | use WebinoConfigLib\Feature\SmtpMailer; |
| 12 | 12 | use WebinoConfigLib\Feature\Route; |
| 13 | 13 | |
| 14 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 14 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 15 | 15 | |
| 16 | 16 | $config = Webino::config([ |
| 17 | 17 | /** |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | $app = Webino::application($config)->bootstrap(); |
| 31 | 31 | |
| 32 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
| 32 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
| 33 | 33 | |
| 34 | 34 | // TODO message config |
| 35 | 35 | $event->getApp()->mail()->getMessage()->setFrom('[email protected]'); |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | use WebinoExamplesLib\Html\ConsolePreview; |
| 14 | 14 | use WebinoHtmlLib\Html; |
| 15 | 15 | |
| 16 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 16 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 17 | 17 | |
| 18 | 18 | class MyConsoleCommand extends AbstractConsoleCommand |
| 19 | 19 | { |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | $app = Webino::application($config)->bootstrap(); |
| 40 | 40 | |
| 41 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
| 41 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
| 42 | 42 | $event->setResponseContent([ |
| 43 | 43 | new Html\Text('Use Command Line Interface!'), |
| 44 | 44 | (new ConsolePreview('preview.gif'))->setHeight(400), |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | use WebinoViewLib\Feature\NodeView; |
| 14 | 14 | use WebinoHtmlLib\Html; |
| 15 | 15 | |
| 16 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 16 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 17 | 17 | |
| 18 | 18 | $config = Webino::config([ |
| 19 | 19 | /** |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | $app = Webino::application($config)->bootstrap(); |
| 33 | 33 | |
| 34 | -$app->bindRoute('viewTest', function (RouteEvent $event) { |
|
| 34 | +$app->bindRoute('viewTest', function(RouteEvent $event) { |
|
| 35 | 35 | /** |
| 36 | 36 | * Responding |
| 37 | 37 | * using view. |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $event->setResponse($response); |
| 61 | 61 | }); |
| 62 | 62 | |
| 63 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
| 63 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
| 64 | 64 | $event->setResponseContent([ |
| 65 | 65 | $event->getApp()->url('viewTest')->html('View response!'), |
| 66 | 66 | new SourcePreview(__FILE__), |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | use WebinoExamplesLib\Html\ConsolePreview; |
| 14 | 14 | use WebinoHtmlLib\Html; |
| 15 | 15 | |
| 16 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 16 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 17 | 17 | |
| 18 | 18 | class MyConsoleCommand extends AbstractConsoleCommand |
| 19 | 19 | { |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | { |
| 31 | 31 | $cli = $event->getCli(); |
| 32 | 32 | |
| 33 | - $cli->addArt(__DIR__ . '/animation'); |
|
| 33 | + $cli->addArt(__DIR__.'/animation'); |
|
| 34 | 34 | $cli->animation('bender')->speed(50)->run(); |
| 35 | 35 | } |
| 36 | 36 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | $app = Webino::application($config)->bootstrap(); |
| 43 | 43 | |
| 44 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
| 44 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
| 45 | 45 | $event->setResponseContent([ |
| 46 | 46 | new Html\Text('Use Command Line Interface!'), |
| 47 | 47 | (new ConsolePreview('preview.gif'))->setHeight(400), |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | use WebinoConfigLib\Feature\Route; |
| 12 | 12 | use WebinoHtmlLib\Html; |
| 13 | 13 | |
| 14 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 14 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 15 | 15 | |
| 16 | 16 | $config = Webino::config([ |
| 17 | 17 | /** |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | |
| 24 | 24 | $app = Webino::application($config)->bootstrap(); |
| 25 | 25 | |
| 26 | -$app->bindRoute('xmlTest', function (RouteEvent $event) { |
|
| 26 | +$app->bindRoute('xmlTest', function(RouteEvent $event) { |
|
| 27 | 27 | /** |
| 28 | 28 | * Responding |
| 29 | 29 | * using XML. |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $event->setResponse(new XmlResponse(new Html\Tag('root', 'Hello Webino!'))); |
| 32 | 32 | }); |
| 33 | 33 | |
| 34 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
| 34 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
| 35 | 35 | $event->setResponseContent([ |
| 36 | 36 | $event->getApp()->url('xmlTest')->html('View XML!'), |
| 37 | 37 | new SourcePreview(__FILE__), |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | use WebinoConfigLib\Feature\Route; |
| 14 | 14 | use WebinoEventLib\AbstractListener; |
| 15 | 15 | |
| 16 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 16 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Listener aggregate |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | /** |
| 28 | 28 | * Handling default route. |
| 29 | 29 | */ |
| 30 | - $this->listen(DefaultRoute::class, function (RouteEvent $event) { |
|
| 30 | + $this->listen(DefaultRoute::class, function(RouteEvent $event) { |
|
| 31 | 31 | $event->setResponseContent([ |
| 32 | 32 | new Html\Text('Hello Webino!'), |
| 33 | 33 | $event->getApp()->url('myRoute')->html('Go to MyRoute'), |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * Handling custom route. |
| 40 | 40 | */ |
| 41 | - $this->listenRoute('myRoute', function (RouteEvent $event) { |
|
| 41 | + $this->listenRoute('myRoute', function(RouteEvent $event) { |
|
| 42 | 42 | $event->setResponseContent([ |
| 43 | 43 | new Html\Text('My Route Example!'), |
| 44 | 44 | $event->getApp()->url(DefaultRoute::class)->html('Go Home'), |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | use WebinoAppLib\Router\DefaultRoute; |
| 13 | 13 | use WebinoConfigLib\Feature\Route; |
| 14 | 14 | |
| 15 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 15 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 16 | 16 | |
| 17 | 17 | $config = Webino::config([ |
| 18 | 18 | /** |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | |
| 25 | 25 | $app = Webino::application($config)->bootstrap(); |
| 26 | 26 | |
| 27 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
| 27 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
| 28 | 28 | /** |
| 29 | 29 | * Obtaining local |
| 30 | 30 | * filesystem service. |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | use WebinoHtmlLib\Html; |
| 12 | 12 | use WebinoConfigLib\Feature\Log; |
| 13 | 13 | |
| 14 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 14 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 15 | 15 | |
| 16 | 16 | $config = Webino::config([ |
| 17 | 17 | /** |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | */ |
| 36 | 36 | $app->log($app::DEBUG, 'Test debug log message {0} {1}', ['paramOne', 'paramTwo']); |
| 37 | 37 | |
| 38 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
| 38 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
| 39 | 39 | /** |
| 40 | 40 | * Obtaining log |
| 41 | 41 | * file contents. |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | use WebinoAppLib\Response\Content\SourcePreview; |
| 9 | 9 | use WebinoAppLib\Router\DefaultRoute; |
| 10 | 10 | |
| 11 | -require __DIR__ . '/../../vendor/autoload.php'; |
|
| 11 | +require __DIR__.'/../../vendor/autoload.php'; |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Adding the Tracy |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | $app = Webino::application(null, $debugger)->bootstrap(); |
| 20 | 20 | |
| 21 | -$app->bind(DefaultRoute::class, function (RouteEvent $event) { |
|
| 21 | +$app->bind(DefaultRoute::class, function(RouteEvent $event) { |
|
| 22 | 22 | $event->setResponseContent([ |
| 23 | 23 | 'Check out right bottom corner > TRACY!', |
| 24 | 24 | new SourcePreview(__FILE__), |