Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 25, 2015
1 parent b713574 commit 718202c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/Application/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ class Application extends Nette\Object
/** @var string */
public $errorPresenter;

/** @var array of function(Application $sender); Occurs before the application loads presenter */
/** @var callable[] function(Application $sender); Occurs before the application loads presenter */
public $onStartup;

/** @var array of function(Application $sender, \Exception $e = NULL); Occurs before the application shuts down */
/** @var callable[] function(Application $sender, \Exception $e = NULL); Occurs before the application shuts down */
public $onShutdown;

/** @var array of function(Application $sender, Request $request); Occurs when a new request is received */
/** @var callable[] function(Application $sender, Request $request); Occurs when a new request is received */
public $onRequest;

/** @var array of function(Application $sender, Presenter $presenter); Occurs when a presenter is created */
/** @var callable[] function(Application $sender, Presenter $presenter); Occurs when a presenter is created */
public $onPresenter;

/** @var array of function(Application $sender, IResponse $response); Occurs when a new response is ready for dispatch */
/** @var callable[] function(Application $sender, IResponse $response); Occurs when a new response is ready for dispatch */
public $onResponse;

/** @var array of function(Application $sender, \Exception $e); Occurs when an unhandled exception occurs in the application */
/** @var callable[] function(Application $sender, \Exception $e); Occurs when an unhandled exception occurs in the application */
public $onError;

/** @var Request[] */
Expand Down
2 changes: 1 addition & 1 deletion src/Application/UI/Presenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ abstract class Presenter extends Control implements Application\IPresenter
/** @var int */
public $invalidLinkMode;

/** @var array of function(Presenter $sender, IResponse $response = NULL); Occurs when the presenter is shutting down */
/** @var callable[] function(Presenter $sender, IResponse $response = NULL); Occurs when the presenter is shutting down */
public $onShutdown;

/** @var Nette\Application\Request */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Test: Nette\DI\Compiler: services setup.
* Test: LatteExtension.
*/

use Nette\DI,
Expand Down Expand Up @@ -74,7 +74,7 @@ latte:
$compiler = new DI\Compiler;
$compiler->addExtension('latte', new Nette\Bridges\ApplicationDI\LatteExtension(NULL, FALSE));
$compiler->addExtension('another', new AnotherExtension);
$code = $compiler->compile($config, 'Container', 'Nette\DI\Container');
$code = $compiler->compile($config, 'Container');
eval($code);

$container = new Container;
Expand Down

0 comments on commit 718202c

Please sign in to comment.