大家好,这是我的问题:
我有一个必须使用 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