1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Mon, 1 Feb 2016 14:50:42 -0400
Subject: Adapt autoload path in examples
Forwarded: not-needed
---
examples/01-interpreting-a-simple-docblock.php | 2 +-
examples/02-interpreting-tags.php | 2 +-
examples/03-reconstituting-a-docblock.php | 2 +-
examples/04-adding-your-own-tag.php | 2 +-
examples/playing-with-descriptions/02-escaping.php | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/examples/01-interpreting-a-simple-docblock.php b/examples/01-interpreting-a-simple-docblock.php
index 6d67dea..75ffc8f 100644
--- a/examples/01-interpreting-a-simple-docblock.php
+++ b/examples/01-interpreting-a-simple-docblock.php
@@ -1,5 +1,5 @@
<?php
-require_once(__DIR__ . '/../vendor/autoload.php');
+require_once('/usr/share/php/phpDocumentor/Reflection/DocBlock/autoload.php');
use phpDocumentor\Reflection\DocBlockFactory;
diff --git a/examples/02-interpreting-tags.php b/examples/02-interpreting-tags.php
index 2399588..b0b4765 100644
--- a/examples/02-interpreting-tags.php
+++ b/examples/02-interpreting-tags.php
@@ -1,5 +1,5 @@
<?php
-require_once(__DIR__ . '/../vendor/autoload.php');
+require_once('/usr/share/php/phpDocumentor/Reflection/DocBlock/autoload.php');
use phpDocumentor\Reflection\DocBlockFactory;
diff --git a/examples/03-reconstituting-a-docblock.php b/examples/03-reconstituting-a-docblock.php
index 482a6dd..7e67afe 100644
--- a/examples/03-reconstituting-a-docblock.php
+++ b/examples/03-reconstituting-a-docblock.php
@@ -1,6 +1,6 @@
<?php
-require_once(__DIR__ . '/../vendor/autoload.php');
+require_once('/usr/share/php/phpDocumentor/Reflection/DocBlock/autoload.php');
use phpDocumentor\Reflection\DocBlock\Serializer;
use phpDocumentor\Reflection\DocBlockFactory;
diff --git a/examples/04-adding-your-own-tag.php b/examples/04-adding-your-own-tag.php
index 38ab724..deba4fa 100644
--- a/examples/04-adding-your-own-tag.php
+++ b/examples/04-adding-your-own-tag.php
@@ -3,7 +3,7 @@
* In this example we demonstrate how you can add your own Tag using a Static Factory method in your Tag class.
*/
-require_once(__DIR__ . '/../vendor/autoload.php');
+require_once('/usr/share/php/phpDocumentor/Reflection/DocBlock/autoload.php');
use phpDocumentor\Reflection\DocBlock\Serializer;
use phpDocumentor\Reflection\DocBlock\Tag;
diff --git a/examples/playing-with-descriptions/02-escaping.php b/examples/playing-with-descriptions/02-escaping.php
index 5ec772f..cad9b0a 100644
--- a/examples/playing-with-descriptions/02-escaping.php
+++ b/examples/playing-with-descriptions/02-escaping.php
@@ -1,6 +1,6 @@
<?php
-require_once(__DIR__ . '/../../vendor/autoload.php');
+require_once('/usr/share/php/phpDocumentor/Reflection/DocBlock/autoload.php');
use phpDocumentor\Reflection\DocBlockFactory;
|