Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
plugins
cf-dependencies
caldera-containers
Commits
45bc7fe9
Commit
45bc7fe9
authored
May 05, 2018
by
Josh Pollock
Browse files
Added lazy-loaded singletons
parent
9b17f88d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Tests/Mocks/Provider.php
0 → 100644
View file @
45bc7fe9
<?php
namespace
calderawp\CalderaContainers\Tests\Mocks
;
use
calderawp\CalderaContainers\Interfaces\ProvidesService
;
use
calderawp\CalderaContainers\Interfaces\ServiceContainer
;
class
SivanService
implements
ProvidesService
{
/** @inheritdoc */
public
function
registerService
(
ServiceContainer
$container
)
{
$container
->
bind
(
$this
->
getAlias
(),
function
(){
return
(
object
)
[
'Roy'
,
'Mike'
];
}
);
}
/** @inheritdoc */
public
function
getAlias
()
{
return
'SIVAN'
;
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment