1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 18:13:00 +01:00

Merge pull request #1146 from itafroma/function-guard

Conditionally require functions.php
This commit is contained in:
Michael Dowling 2015-06-30 09:00:54 -07:00
commit d46277b43e
2 changed files with 7 additions and 1 deletions

View File

@ -23,7 +23,7 @@
"psr/log": "~1.0"
},
"autoload": {
"files": ["src/functions.php"],
"files": ["src/functions_include.php"],
"psr-4": {
"GuzzleHttp\\": "src/"
}

View File

@ -0,0 +1,6 @@
<?php
// Don't redefine the functions if included multiple times.
if (!function_exists('GuzzleHttp\uri_template')) {
require __DIR__ . '/functions.php';
}