Skip to content

Commit

Permalink
Updated Application.php, CHANGELOG.md, and README..md
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Jan 5, 2016
1 parent ee06bd4 commit bd39610
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ All Notable changes to `Slytherin` will be documented in this file
## [0.4.0](https://github.com/rougin/slytherin/compare/v0.3.0...v0.4.0)

### Added
- `ComponentCollection::setContainer` for adding libraries that is implemented in [container-interop/container-interop](https://github.com/container-interop/container-interop)'s `ContainerInterface`
- `ComponentCollection::setContainer` for adding packages implemented on [container-interop/container-interop](https://github.com/container-interop/container-interop)'s `ContainerInterface`

### Changed
- `ErrorHandler` to `Debug`
- `ComponentCollection` to `Components`
- Renamed sample library implementations

### Removed
- `Http` directory (Will now adopt [PSR-7](http://www.php-fig.org/psr/psr-7/) implementations)
- `ComponentCollection::setInjector`
- `Http` directory (Will now require implementations in [PSR-7](http://www.php-fig.org/psr/psr-7))

## [0.3.0](https://github.com/rougin/slytherin/compare/v0.2.1...v0.3.0) - 2015-11-02

Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]

An Extensible PHP Library/Framework For The Courageous And Fearless.
Yet Another Extensible PHP Library/Framework.

## Install

Expand All @@ -23,13 +23,10 @@ $ composer require rougin/slytherin
$components = new Rougin\Slytherin\Components;

$components
->setHttp(
/* Your favorite request handler */,
/* Your favorite response handler */
);
->setContainer(new Acme\IoC\Container)
->setDispatcher(new Acme\Dispatching\Dispatcher)
->setDebugger(new Acme\Debug\Debugger)
->setHttp(new Acme\Http\Request, new Acme\Http\Response);

$application = new Rougin\Slytherin\Application($components);

Expand Down
4 changes: 2 additions & 2 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ public function run()
/**
* Gets the route result from the dispatcher.
*
* @param RequestInterface $request
* @param \Psr\Http\Message\RequestInterface $request
* @return string
*/
protected function getRoute(RequestInterface $request)
private function getRoute(RequestInterface $request)
{
// Gets the requested route
$route = $this->components->getDispatcher()->dispatch(
Expand Down

0 comments on commit bd39610

Please sign in to comment.