Skip to content

Commit

Permalink
remove \GianArb prefix in docs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Oct 2, 2015
1 parent bec2f11 commit ce62cec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Dispatcher tries to match router and request, if this match exists it returns th

There are two possible kind of problems:

* Route doesn't exist, an `GianArb\Penny\Exception\RouteNotFound` Exception is thrown;
* Route exists but the HTTP Method hasn't been matched, an `GianArb\Penny\Exception\MethodNotAllowed` Exception is thrown;
* Route doesn't exist, an `Penny\Exception\RouteNotFound` Exception is thrown;
* Route exists but the HTTP Method hasn't been matched, an `Penny\Exception\MethodNotAllowed` Exception is thrown;

If no exception are thrown, a response is returned back.

Expand All @@ -35,7 +35,7 @@ chdir(dirname(__DIR__));

require_once "./vendor/autoload.php";

$app = new \GianArb\Penny\App();
$app = new \Penny\App();

$app->getContainer()->get("event_manager")->attach("*", function ($event) {
$e = $event->getException();
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Every application has an entry point, `public/index.php` is our.
chdir(dirname(__DIR__));
require "vendor/autoload.php";

$app = new \GianArb\Penny\App();
$app = new \Penny\App();
$emitter = new \Zend\Diactoros\Response\SapiEmitter();
$emitter->emit($app->run());
```
Expand Down Expand Up @@ -359,7 +359,7 @@ Doctrine has an awesome console that helps you to manage database, schema, cache
// cli-config.php
require "vendor/autoload.php";

$app = new \GianArb\Penny\App();
$app = new \Penny\App();
return \Doctrine\ORM\Tools\Console\ConsoleRunner::createHelperSet($app->getContainer()->get("doctrine.em"));
```

Expand Down
6 changes: 3 additions & 3 deletions docs/the-dispatcher-concept.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ class FastSymfonyDispatcher
$routeInfo = $this->router->dispatch($request->getMethod(), $request->getPathInfo());
switch ($routeInfo[0]) {
case \FastRoute\Dispatcher::NOT_FOUND:
throw new \GianArb\Penny\Exception\RouteNotFound();
throw new \Penny\Exception\RouteNotFound();
break;
case \FastRoute\Dispatcher::METHOD_NOT_ALLOWED:
throw new \GianArb\Penny\Exception\MethodNotAllowed();
throw new \Penny\Exception\MethodNotAllowed();
break;
case \FastRoute\Dispatcher::FOUND:
return $routeInfo;
Expand All @@ -75,7 +75,7 @@ class FastSymfonyDispatcher

```php
<?php
use GianArb\Penny\App;
use Penny\App;
use YourApp\Dispatcher\FastSymfonyDispatcher;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down

0 comments on commit ce62cec

Please sign in to comment.