Skip to content

Commit d6562d2

Browse files
committed
add illustration pic and README for proxy pattern
1 parent 9dc0b73 commit d6562d2

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

app/Controller/StructuralController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function decoratorActiveRecord()
3434
(new \App\Patterns\Structural\DecoratorPattern\ActiveRecord\Application)->run();
3535
}
3636

37-
public function proxy()
37+
public function proxyFileReader()
3838
{
3939
(new \App\Patterns\Structural\ProxyPattern\FileReader\Application)->run();
4040
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# File Reader
2+
![Illustration](./illustration.png)
Loading

bootstraps/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
['GET', '/bridge-flights', ['App\Controller\StructuralController', 'bridgeFlights']],
1919
['GET', '/composite-form', ['App\Controller\StructuralController', 'compositeForm']],
2020
['GET', '/decorator-active-record', ['App\Controller\StructuralController', 'decoratorActiveRecord']],
21-
['GET', '/structural/proxy', ['App\Controller\StructuralController', 'proxy']],
21+
['GET', '/proxy-file-reader', ['App\Controller\StructuralController', 'proxyFileReader']],
2222
['GET', '/behavioral', ['App\Controller\BehavioralController', 'chainOfResponsibility']],
2323
['GET', '/behavioral/command', ['App\Controller\BehavioralController', 'command']],
2424
['GET', '/behavioral/iterator', ['App\Controller\BehavioralController', 'iterator']],

0 commit comments

Comments
 (0)