Skip to content

Commit

Permalink
Remove dispatcher and request related prototype methods
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed May 13, 2022
1 parent d1f1f30 commit b382ed3
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 236 deletions.
27 changes: 0 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,6 @@ The **icanboogie/bind-http** package binds [icanboogie/http][] to [ICanBoogie][]



## Prototype methods

The following prototype methods are defined, the [ApplicationBindings][] trait may be used for type
hinting:

- `ICanBoogie\Application::get_initial_request`: Returns the initial request.
- `ICanBoogie\Application::get_request`: Returns the current request.

The following example demonstrates how this getters may be used:

```php
<?php

namespace ICanBoogie;

require 'vendor/autoload.php';

$app = boot();

$initial_request = $app->initial_request;
$request = $app->request;
```




----------


Expand All @@ -54,6 +28,5 @@ test suite. Alternatively, run `make test-coverage` to run the test suite with t



[ApplicationBindings]: lib/ApplicationBindings.php
[ICanBoogie]: https://icanboogie.org/
[icanboogie/http]: https://github.com/ICanBoogie/HTTP
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@
},
"extra": {
"icanboogie": {
"config-path": "config",
"config-constructor": {
"http_dispatchers": "ICanBoogie\\Binding\\HTTP\\Hooks::synthesize_dispatchers_config#http"
}
"config-path": "config"
}
},
"scripts": {
Expand Down
19 changes: 0 additions & 19 deletions config/prototype.php

This file was deleted.

4 changes: 2 additions & 2 deletions config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ services:
autowire: true

ICanBoogie\HTTP\Responder:
alias: ICanBoogie\HTTP\Responder\WithProvider
alias: ICanBoogie\HTTP\Responder\DelegateToProvider
public: true

ICanBoogie\HTTP\Responder\WithProvider: ~
ICanBoogie\HTTP\Responder\DelegateToProvider: ~

ICanBoogie\HTTP\Responder\WithEvent:
decorates: ICanBoogie\HTTP\Responder
Expand Down
26 changes: 0 additions & 26 deletions lib/ApplicationBindings.php

This file was deleted.

121 changes: 0 additions & 121 deletions lib/Hooks.php

This file was deleted.

37 changes: 0 additions & 37 deletions tests/lib/HooksTest.php

This file was deleted.

0 comments on commit b382ed3

Please sign in to comment.