Commit 31c8af22 authored by Adrian Rossouw's avatar Adrian Rossouw
Browse files

added a missing file

parent e41bbf05
<?php
class provisionService {
}
class provisionService_null extends provisionService {
function __get($name) {
return false;
}
function __call($name, $args) {
return false;
}
}
provision_service('null', new provisionService_null());
function provision_service($type, $object = null) {
static $instances = null;
if (is_object($object)) {
$instances[$type] = $object;
}
if (isset($instances[$type])) {
return $instances[$type];
}
return $instances['null'];
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment