11
A
回答
16
它們在Symfony\Component\HttpKernel\Kernel.php
;
/**
* Returns the kernel parameters.
*
* @return array An array of kernel parameters
*/
protected function getKernelParameters()
{
$bundles = array();
foreach ($this->bundles as $name => $bundle) {
$bundles[$name] = get_class($bundle);
}
return array_merge(
array(
'kernel.root_dir' => $this->rootDir,
'kernel.environment' => $this->environment,
'kernel.debug' => $this->debug,
'kernel.name' => $this->name,
'kernel.cache_dir' => $this->getCacheDir(),
'kernel.logs_dir' => $this->getLogDir(),
'kernel.bundles' => $bundles,
'kernel.charset' => $this->getCharset(),
'kernel.container_class' => $this->getContainerClass(),
),
$this->getEnvParameters()
);
}
0
你也可以看到他們在app/cache/dev/appDevDebugProjectContainer.php:getDefaultParameters()
(它在文件末尾),所有提供給您的應用程序中的其他參數。
/**
* Gets the default parameters.
*
* @return array An array of the default parameters
*/
protected function getDefaultParameters()
{
return array(
'kernel.root_dir' => $this->targetDirs[2],
'kernel.environment' => 'dev',
'kernel.debug' => true,
'kernel.name' => 'app',
'kernel.cache_dir' => __DIR__,
'kernel.logs_dir' => ($this->targetDirs[2].'/logs'),
...
);
}
相關問題
- 1. C++函數參考預定義參數
- 2. 函數中的預定義參數
- 3. 將自定義參數傳遞給Symfony2中的自定義ValidationConstraint
- 4. 預定義可變參數函數指針參數
- 5. Symfony2,教義自定義DQL函數
- 6. Symfony2教義自定義函數
- 7. QueryBuilder Symfony2參數
- 8. Symfony2的 - 自定義參數postFlush方法使用註釋
- 9. 使用註釋定義發佈參數 - Symfony2
- 10. 哪裏可以找到我需要的Symfony2自定義參數?
- 11. 如何使用類定義數組併爲其添加值(預定義參數)?
- 12. Symfony2選擇:「標量」,「數組」的預期參數給出
- 13. Symfony2的學說:設定參數與
- 14. Symfony2 ajax:參數+形式,綁定錯誤
- 15. .NET中預定義例外的參考
- 16. Symfony2測試參數
- 17. 帶預定義參數的Bash別名函數
- 18. 創建具有預定義值的PHP函數的參數
- 19. 是否可以預先定義函數參數的可用值?
- 20. 有沒有辦法預先定義C函數參數的預期長度?
- 21. 使用預定義數組
- 22. Javascript預定義函數
- 23. Doctrine2 Symfony2自定義函數解析器
- 24. 定義的參數
- 25. 自定義參數
- 26. Symfony2中插入錯誤「警告:spl_object_hash()預計參數......」
- 27. Symfony2在服務定義問題中傳遞關聯數組作爲參數
- 28. symfony2 textfield自定義標籤
- 29. 的Symfony2表單自定義
- 30. 自定義查詢symfony2