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

improved example

parent fba19ca4
No related branches found
No related tags found
No related merge requests found
Pipeline #194 passed with stage
......@@ -19,3 +19,8 @@ DI::set('memcache', function() {
$memcache->addServer('localhost', 11211);
return $memcache;
});
// keep the function for your not refactored lagacy code:
function getMemcache() {
return DI::get('memcache');
}
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