1: <?php
2: /**
3: * Copyright 2011-2012 Horde LLC (http://www.horde.org/)
4: *
5: * See the enclosed file COPYING for license information (LGPL). If you
6: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
7: *
8: * @author Jan Schneider <jan@horde.org>
9: * @category Horde
10: * @package Core
11: */
12: class Horde_Core_Factory_PermsCore extends Horde_Core_Factory_Injector
13: {
14: /**
15: * Attempts to return a concrete instance based on $driver.
16: *
17: * @return Horde_Perms_Core The newly created concrete instance.
18: * @throws Horde_Perms_Exception
19: */
20: public function create(Horde_Injector $injector)
21: {
22: return new Horde_Core_Perms($injector->getInstance('Horde_Registry'),
23: $injector->getInstance('Horde_Perms'));
24: }
25: }
26: