PHP code example of spekkionu / tactician-container-selfhandling
1. Go to this page and download the library: Download spekkionu/tactician-container-selfhandling 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/ */
spekkionu / tactician-container-selfhandling example snippets
php
use Spekkionu\Tactician\SelfExecuting\SelfExecutingCommand;
/**
* Class ExampleSelfExecutingCommand
*/
class ExampleSelfExecutingCommand implements SelfExecutingCommand
{
/**
* @return string
*/
public function handle()
{
// do work here
}
}
php
$commandBus->handle(new ExampleSelfExecutingCommand());
php
$commandBus->handle(new ExampleSelfExecutingCommand());