diff --git a/composer.json b/composer.json index 7fbc90c..d20f3e4 100644 --- a/composer.json +++ b/composer.json @@ -64,9 +64,6 @@ "autoload": { "psr-4": { "App\\Core\\": "src/core/" - }, - "files": [ - "src/core/autoload.php" - ] + } } } diff --git a/src/core/Controller/Admin/AdminController.php b/src/core/Controller/Admin/AdminController.php index e4c26ed..938075a 100644 --- a/src/core/Controller/Admin/AdminController.php +++ b/src/core/Controller/Admin/AdminController.php @@ -2,6 +2,7 @@ namespace App\Core\Controller\Admin; +use App\Core\Murph; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; @@ -29,7 +30,7 @@ abstract class AdminController extends AbstractController 'section' => $this->getSection(), 'site_name' => $params['name'], 'site_logo' => $params['logo'], - 'murph_version' => MURPH_VERSION, + 'murph_version' => Murph::version(), ] ); diff --git a/src/core/Murph.php b/src/core/Murph.php new file mode 100644 index 0000000..5272f3c --- /dev/null +++ b/src/core/Murph.php @@ -0,0 +1,20 @@ + + */ +class Murph +{ + public static function version(): string + { + return MURPH_VERSION; + } +} diff --git a/src/core/autoload.php b/src/core/autoload.php deleted file mode 100644 index 1cbedcf..0000000 --- a/src/core/autoload.php +++ /dev/null @@ -1,5 +0,0 @@ -