기본적으로 Composer 자동 로더 (타사 라이브러리 로딩 용)를 사용하고 싶지만 Zend 1.12에서 자동 로딩을위한 내장 메커니즘을 계속 사용하고 싶습니다.Zend 1.12에서 Composer 자동 로더 (외부 라이브러리로드 용)를 사용합니까?
코드 : 또한
<?php // File path: index.php
// ...
$composerAutoloaderPaths = array(
'../vendor/autoload.php',
'../../common/vendor/autoload.php' // store common libraries used by multiple projects, currently that's working by adding the directory in set_include_path()
);
foreach($composerAutoloaderPaths as $composerAutoloaderPath)
{
if(file_exists($composerAutoloaderPath))
{
require_once $composerAutoloaderPath;
}
else
{
// handle the error gracefully
}
}
// ...
, 나는이 같은 Zend_Loader_Autoloader
을 사용하고 있습니다 :
<?php // File path: Bootstrap.php
// ...
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace('Plugin_');
$autoloader->registerNamespace('Helper_');
// etc.
// ...
이 같은 작곡가와 젠드 자동 로더를 사용하는 방법에 대한 걱정 뭔가가 있나요? 그런 bootstrap.php에서