Mark V
1: <?php
2: namespace MOC\V\Core\AutoLoader\Component\Bridge;
3:
4: use MOC\V\Core\AutoLoader\Component\IBridgeInterface;
5:
6: /**
7: * Class Bridge
8: *
9: * @package MOC\V\Core\AutoLoader\Component\Bridge
10: */
11: abstract class Bridge implements IBridgeInterface
12: {
13:
14: /**
15: * @return IBridgeInterface
16: */
17: public function registerLoader()
18: {
19:
20: spl_autoload_register(array($this, 'loadSourceFile'), true, false);
21: return $this;
22: }
23:
24: /**
25: * @return IBridgeInterface
26: */
27: public function unregisterLoader()
28: {
29:
30: spl_autoload_unregister(array($this, 'loadSourceFile'));
31: return $this;
32: }
33:
34: }
35: