Commit e7aa5dec authored by Guillaume Perréal's avatar Guillaume Perréal

Extrait la fonction "irstea_plantmul_include" dans un fichier séparé.

parent 5d466319
......@@ -15,7 +15,8 @@
"source": "https://gitlab.irstea.fr/pole-is/bundles/plantuml-bundle/tree/master"
},
"autoload": {
"psr-4": { "Irstea\\PlantUmlBundle\\": "src/" }
"psr-4": { "Irstea\\PlantUmlBundle\\": "src/" },
"files": ["src/functions.php"]
},
"minimum-stability": "stable",
"autoload-dev": {
......
......@@ -76,8 +76,3 @@ class ClassFinder implements FinderInterface
$conf['directories'] = $this->directories;
}
}
function irstea_plantmul_include($filepath)
{
@include_once $filepath;
}
<?php declare(strict_types=1);
/*
* Copyright (C) 2016-2017 IRSTEA
* All rights reserved.
*/
/**
* @param string $filepath
*/
function irstea_plantmul_include($filepath)
{
/* @noinspection UsingInclusionOnceReturnValueInspection */
@include_once $filepath;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment