Allow for the Opcache GUI to be autoloaded via Composer (#23)

* Updated composer.json to allow for autoloading

* Updated class to add namespacing
This commit is contained in:
Jack W-H 2017-03-27 15:16:00 +01:00 committed by Andrew Collington
parent 4cc74c4174
commit c9664f24db
2 changed files with 7 additions and 0 deletions

View file

@ -23,6 +23,11 @@
"require": {
"ext-Zend-OPcache": "*",
"php": ">=5.4"
},
"autoload": {
"psr-4" : {
"OpcacheGui\\" : "/"
}
}
}

View file

@ -1,5 +1,7 @@
<?php
namespace OpcacheGui;
/**
* OPcache GUI
*