mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-28 23:39:24 +02:00
Move usage code exaple to single file and correctly include it
This make code more structured and fix code highlighting problem
This commit is contained in:
@@ -43,11 +43,11 @@ Bicycle.php
|
||||
Usage
|
||||
-----
|
||||
|
||||
.. code:: php
|
||||
Usage/SimpleFactoryUsage.php
|
||||
|
||||
$factory = new SimpleFactory();
|
||||
$bicycle = $factory->createBicycle();
|
||||
$bicycle->driveTo('Paris');
|
||||
.. literalinclude:: Usage/SimpleFactoryUsage.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
Reference in New Issue
Block a user