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

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

No related merge requests found
Showing with 16 additions and 6 deletions
+16 -6
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
"source": "https://gitlab.irstea.fr/pole-is/bundles/plantuml-bundle/tree/master" "source": "https://gitlab.irstea.fr/pole-is/bundles/plantuml-bundle/tree/master"
}, },
"autoload": { "autoload": {
"psr-4": { "Irstea\\PlantUmlBundle\\": "src/" } "psr-4": { "Irstea\\PlantUmlBundle\\": "src/" },
"files": ["src/functions.php"]
}, },
"minimum-stability": "stable", "minimum-stability": "stable",
"autoload-dev": { "autoload-dev": {
......
...@@ -76,8 +76,3 @@ class ClassFinder implements FinderInterface ...@@ -76,8 +76,3 @@ class ClassFinder implements FinderInterface
$conf['directories'] = $this->directories; $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;
}
Supports Markdown
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