2013-05-20 22:18:07 +12:00
|
|
|
<?php
|
|
|
|
|
2016-08-19 10:51:35 +12:00
|
|
|
namespace SilverStripe\Core\Injector;
|
|
|
|
|
2013-05-20 22:18:07 +12:00
|
|
|
/**
|
2014-08-15 18:53:05 +12:00
|
|
|
* Used to locate configuration for a particular named service.
|
|
|
|
*
|
2013-05-20 22:18:07 +12:00
|
|
|
* If it isn't found, return null.
|
|
|
|
*/
|
2016-08-19 10:51:35 +12:00
|
|
|
interface ServiceConfigurationLocator {
|
2015-09-28 22:21:08 +13:00
|
|
|
|
2014-03-12 14:58:49 +13:00
|
|
|
/**
|
|
|
|
* Finds the Injector config for a named service.
|
2015-09-28 22:21:08 +13:00
|
|
|
*
|
2014-03-12 14:58:49 +13:00
|
|
|
* @param string $name
|
|
|
|
* @return mixed
|
|
|
|
*/
|
2016-08-19 10:51:35 +12:00
|
|
|
public function locateConfigFor($name);
|
2016-01-06 12:34:58 +13:00
|
|
|
}
|