You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Library supports Cache bundles based on PSR-16 standard.
For below example was used phpfastcache/phpfastcache.
phpfastcache/phpfastcache supports a lot of endpoints, i.e. Files, Sqlite, Redis and many other.
More information about using cache and configuration it you can find in this Wiki.
/** * Cache in system files */$oInstanceCacheFiles = new \phpFastCache\Helper\Psr16Adapter('files');
Log
Library also supports logging packages based on PSR-3 standard, i.e. very popular
monolog/monolog.
$oInstanceLogger = new \Monolog\Logger('name_of_my_logger');
$oInstanceLogger->pushHandler(new \Monolog\Handler\ErrorLogHandler(
\Monolog\Handler\ErrorLogHandler::OPERATING_SYSTEM,
\Psr\Log\LogLevel::DEBUG
)
);
Teryt Authentication
Service TERYT WS1 shares API based on SOAP Protocol. More information about service you can find on
this site
There are two ways to connect to the server:
production database - you need login/password
testing database - default authentication with default login/password pair
First of all we need configure connection calling setTerytConfig() method and
optionally set cache and log instances