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