From c9664f24dbe7e43a38c9d83c4d71570a8b92e700 Mon Sep 17 00:00:00 2001 From: Jack W-H Date: Mon, 27 Mar 2017 15:16:00 +0100 Subject: [PATCH] Allow for the Opcache GUI to be autoloaded via Composer (#23) * Updated composer.json to allow for autoloading * Updated class to add namespacing --- composer.json | 5 +++++ index.php | 2 ++ 2 files changed, 7 insertions(+) diff --git a/composer.json b/composer.json index 7b68cb9..2f077ed 100644 --- a/composer.json +++ b/composer.json @@ -23,6 +23,11 @@ "require": { "ext-Zend-OPcache": "*", "php": ">=5.4" + }, + "autoload": { + "psr-4" : { + "OpcacheGui\\" : "/" + } } } diff --git a/index.php b/index.php index e514177..a0743b8 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,7 @@