0
大家好,這裏是我的問題:Symfony2中使用一個類開箱 - MessageDigestPasswordEncoder
我有了使用來自Symfony2中的MessageDigestPasswordEncoder外部項目,這裏是我的代碼。我不明白它正確地包括:
require_once "../htdocs/vendor/autoload.php";
$loader->registerNamespace('Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder', '../htdocs/vendor/symfony/security/Symfony/Component/Security/Core/Encoder/MessageDigestPasswordEncoder.php');
$encoder = new MessageDigestPasswordEncoder();
$password = $encoder -> encodePassword($password, '');
這是我的錯誤信息:
Warning: require_once(__DIR__/composer/autoload_real.php) [function.require-once]: failed to open stream: No such file or directory in C:\workspace_aps\gitlist\htdocs\vendor\autoload.php on line 5
Fatal error: require_once() [function.require]: Failed opening required '__DIR__/composer/autoload_real.php' (include_path='.') in C:\workspace_aps\gitlist\htdocs\vendor\autoload.php on line 5