mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
fix embed some files and add download link to README.md
This commit is contained in:
@@ -45,6 +45,18 @@ Request.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Responsible/FastStorage.php
|
||||
|
||||
.. literalinclude:: Responsible/FastStorage.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Responsible/SlowStorage.php
|
||||
|
||||
.. literalinclude:: Responsible/SlowStorage.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -42,6 +42,24 @@ Colleague.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Subsystem/Client.php
|
||||
|
||||
.. literalinclude:: Subsystem/Client.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Subsystem/Database.php
|
||||
|
||||
.. literalinclude:: Subsystem/Database.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Subsystem/Server.php
|
||||
|
||||
.. literalinclude:: Subsystem/Server.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -57,6 +57,30 @@ Picture.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Html/Picture.php
|
||||
|
||||
.. literalinclude:: Html/Picture.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Html/Text.php
|
||||
|
||||
.. literalinclude:: Html/Text.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Json/Picture.php
|
||||
|
||||
.. literalinclude:: Json/Picture.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Json/Text.php
|
||||
|
||||
.. literalinclude:: Json/Text.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -1,53 +0,0 @@
|
||||
Purpose
|
||||
=======
|
||||
|
||||
Examples
|
||||
========
|
||||
|
||||
-
|
||||
|
||||
Code
|
||||
----
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
Wheel.php
|
||||
|
||||
.. literalinclude:: Wheel.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Door.php
|
||||
|
||||
.. literalinclude:: Door.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Car.php
|
||||
|
||||
.. literalinclude:: Car.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Bike.php
|
||||
|
||||
.. literalinclude:: Bike.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Vehicle.php
|
||||
|
||||
.. literalinclude:: Vehicle.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Engine.php
|
||||
|
||||
.. literalinclude:: Engine.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Builder/Parts
|
@@ -56,6 +56,42 @@ BikeBuilder.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Wheel.php
|
||||
|
||||
.. literalinclude:: Parts/Wheel.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Door.php
|
||||
|
||||
.. literalinclude:: Parts/Door.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Car.php
|
||||
|
||||
.. literalinclude:: Parts/Car.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Bike.php
|
||||
|
||||
.. literalinclude:: Parts/Bike.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Vehicle.php
|
||||
|
||||
.. literalinclude:: Parts/Vehicle.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Engine.php
|
||||
|
||||
.. literalinclude:: Parts/Engine.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -3,6 +3,7 @@
|
||||
[](https://travis-ci.org/domnikl/DesignPatternsPHP)
|
||||
|
||||
[Read the Docs of DesignPatternsPHP](http://designpatterns-php.readthedocs.org)
|
||||
or [Download as PDF/Epub](https://readthedocs.org/projects/designpatterns-php/downloads/)
|
||||
|
||||
This is a collection of known design patterns and some sample code how to implement them in PHP. Every pattern has a small list of examples (most of them from Zend Framework, Symfony2 or Doctrine2 as I'm most familiar with this software).
|
||||
|
||||
|
2
conf.py
2
conf.py
@@ -48,7 +48,7 @@ master_doc = 'index'
|
||||
# General information about the project.
|
||||
project = u'DesignPatternsPHP'
|
||||
copyright = u'2015, Dominik Liebler'
|
||||
author = u'Dominik Liebler'
|
||||
author = u'Dominik Liebler with contributors'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
|
Reference in New Issue
Block a user