Skip to content
Snippets Groups Projects
Commit eea6feaa authored by Thomas Flori's avatar Thomas Flori
Browse files

fix singleton example

parent 5afc0226
No related branches found
No related tags found
No related merge requests found
Pipeline #362 passed with stage
in 1 minute and 53 seconds
......@@ -15,7 +15,8 @@ function getTheSingletonResult() {
// $singleton = MySingleton::getInstance();
/** @var $singleton MySingleton */
$singleton = (DI::get(MySingleton::class))::getInstance();
$class = DI::get('MySingleton');
$singleton = $class::getInstance();
return $singleton->getResult();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment