本文整理匯總了PHP中Illuminate\Foundation\Application::getBindings方法的典型用法代碼示例。如果您正苦於以下問題:PHP Application::getBindings方法的具體用法?PHP Application::getBindings怎麽用?PHP Application::getBindings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Illuminate\Foundation\Application
的用法示例。
在下文中一共展示了Application::getBindings方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getBindings
/**
* Get the container's bindings.
*
* @return array
* @static
*/
public static function getBindings()
{
//Method inherited from \Illuminate\Container\Container
return \Illuminate\Foundation\Application::getBindings();
}
示例2: injectStorageDriver
/**
* Inject storage driver and pass configuration using the app IoC container
*/
private static function injectStorageDriver()
{
//Only attempt to inject driver if there is a IoC binding for the interface
if (App::getBindings()[StorageDriver::class]) {
static::$storageDriver = app(StorageDriver::class);
static::$storageDriver->setConfigKey(static::$storageDriverConfigPath);
}
}