PHP code example of palmero / withforks
1. Go to this page and download the library: Download palmero/withforks 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/ */
palmero / withforks example snippets
use Palmero\Withforks;
class Container extends Withforks {
protected function getSomeClass() {
return new SomeClass(
$this->getSettings()['someClass']
);
}
protected function getSomeOtherClass() {
return new SomeOtherClass(
$this->getSettings()['someOtherClass']
);
}
}