Karma is not needed for the Rest generator service because current pecl
application uses only two user levels (admins and maintainers).
Additional change in this context:
- Partioal dependencies injected via class constructor.
This patch adds extractor service class for retrieving file contents
from the tar gzip archives (tgz). Instead of a pure PHP implementation
Archive_Tar PEAR package it uses Phar and zlib extensions to retrieve
contents from the phar stream.
This patch removes dependency of the deprecated HTTP_Upload PEAR package
and replaces it with a lighter version of a dedicated uploader service
class instead.
This moves all error reporting configuration currently applied in a
single place in the bootstrap based on the environment this app is
running. Additionally the approach of displaying errors has been
defined to display errors in development environment and not in
production. In production these should be logged in a file or similar.
This patch adds a dual autoloading mechanism for classes until further
refactorings will be possible using Composer's autoloader and full
PSR-4 support.
This patch adds a DSN string converter that can convert the already set
DSN database setting into an array and populates proper configuration
values. This is done to sync things with the production settings and to
gradually migrate the mysql_* mysqli_* elements to PDO.
This patch refactors the posttohost() function into a dedicated more
OOP-alike approach of using a new PhpMasterClient class with added unit
test.
For testing it uses a simple CLI server written and runnable via php
file.
This patch refactors bootstrap file to include more PEAR things so
other files don't need to do this. It's also done as a partial migrtion
to better classes autoloading in the future.