Skip to content

Commit 0f8868c

Browse files
committed
remove simple factory related files and code
1 parent 1a002d9 commit 0f8868c

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

app/Controller/CreationalController.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,6 @@ public function acmePrototype()
8181
(new \App\Patterns\Creational\Prototype\AcmePrototype\Application)->render();
8282
}
8383

84-
public function simpleFactory()
85-
{
86-
$factory = new SimpleFactory;
87-
$bicycle = $factory->createBicycle();
88-
echo $bicycle->driveTo('Austin Texas');
89-
}
90-
9184
public function staticFactory()
9285
{
9386
$supplier = \App\Patterns\Creational\StaticFactory\Suppliers\FlightSupplierFactory::get(1);

bootstraps/routes.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
['GET', '/logger-factory-method', ['App\Controller\CreationalController', 'loggerFactoryMethod']],
1010
['GET', '/pool-reverse-string', ['App\Controller\CreationalController', 'reverseString']],
1111
['GET', '/prototype-acme', ['App\Controller\CreationalController', 'acmePrototype']],
12-
['GET', '/simple', ['App\Controller\CreationalController', 'simpleFactory']],
1312
['GET', '/static', ['App\Controller\CreationalController', 'staticFactory']],
1413
['GET', '/structural', ['App\Controller\StructuralController', 'adapterPattern']],
1514
['GET', '/structural/adapterExample2', ['App\Controller\StructuralController', 'adapterPatternExample2']],

tests/SimpleFactoryTest.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)