PHP code example of eye4web / zf2-site-config
1. Go to this page and download the library: Download eye4web/zf2-site-config 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/ */
eye4web / zf2-site-config example snippets
return array(
'modules' => array(
// ...
'Eye4web\SiteConfig'
),
// ...
);
namespace YourModule\Service;
use Eye4web\SiteConfig\Service\SiteConfigAwareTrait;
use Eye4web\SiteConfig\Service\SiteConfigAwareInterface;
class YourAwesomeService implements SiteConfigAwareInterface
{
use SiteConfigAwareTrait;
}