diff --git a/composer.json b/composer.json index 86b5d2de13726844d46d4c77559a394e9e9df72d..5aab6c923b1bdbbab614dd86014133e471ba49f1 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/src/Finder/ClassFinder.php b/src/Finder/ClassFinder.php index 11fc15557df1aadc1887536b1f3c14f334b9266e..9c5c3f88a8c0b9837f8d63377c809e479de96510 100644 --- a/src/Finder/ClassFinder.php +++ b/src/Finder/ClassFinder.php @@ -76,8 +76,3 @@ class ClassFinder implements FinderInterface $conf['directories'] = $this->directories; } } - -function irstea_plantmul_include($filepath) -{ - @include_once $filepath; -} diff --git a/src/functions.php b/src/functions.php new file mode 100644 index 0000000000000000000000000000000000000000..d33e3c1a9c9bb06136aace87cf44bbf9bc9ebefa --- /dev/null +++ b/src/functions.php @@ -0,0 +1,14 @@ +<?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; +}