3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
12 interface DependencyInjectionInterface
extends LocatorInterface
15 * Retrieve a new instance of a class
17 * Forces retrieval of a discrete instance of the given class, using the
18 * constructor parameters provided.
20 * @param mixed $name Class name or service alias
21 * @param array $params Parameters to pass to the constructor
24 public function newInstance($name, array $params = array());