PHP code example of spescina / pkg-support
1. Go to this page and download the library: Download spescina/pkg-support library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
spescina / pkg-support example snippets
public function __construct(ServiceInterface $config, ServiceInterface $lang)
{
$this->config = $config;
$this->lang = $lang;
}
$this->app['mypackage'] = $this->app->share(function($app) {
return new MyPackage(new Config('mypackage'), new Lang('mypackage'));
});