Skip to content

Commit

Permalink
Added container
Browse files Browse the repository at this point in the history
  • Loading branch information
Václav Greif committed Oct 8, 2019
1 parent 04cbef4 commit de647da
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion simpleshop-cz.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,13 @@
/**
* Start plugin
*/
new Loader();
function ssc() {
static $container;
if ( empty( $container ) ) {
$container = new Loader();
}

return $container;
}

ssc();

1 comment on commit de647da

@vaclavgreif
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe resolves #20

Please sign in to comment.