1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-01-18 05:48:15 +01:00

Conditionally require functions.php

This commit is contained in:
Mark Trapp 2015-06-25 12:50:04 -04:00
parent 9c43893a8e
commit d706b16e29
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';
}