silverstripe-framework/src/SilverStripe/Framework/Injector/Factory.php
2018-01-30 16:50:32 +00:00

23 lines
465 B
PHP

<?php
namespace SilverStripe\Framework\Injector;
/**
* A factory which is used for creating service instances.
*
* @package framework
* @subpackage injector
*/
interface Factory {
/**
* Creates a new service instance.
*
* @param string $service The class name of the service.
* @param array $params The constructor parameters.
* @return SS_Object The created service instances.
*/
public function create($service, array $params = array());
}