我正在尝试使用composer来安装Symfony Component Event-dispatcher,但该组件安装在vendor / symfony / event-dispatcher目录下,这是正常的吗?

我的Object类需要应用程序/../ library / Symfony / Component / EventDispatcher / EventDispatcher.php):无法打开流:第41行/library/Far/Resource/EventDispatcher.php中没有此类文件或目录

我也要求作曲家autoload.php

我究竟做错了什么?

composer.json

{
    "name": "odnanref/DocsisManager",
    "license": "GPL2",
    "type": "project",
    "description": "Docsis Manager WebApp software",
    "autoload": {
        "psr-0": { "": "library/" }
    },
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework1": "1.*",
                "symfony/event-dispatcher": "*"
    },
        "authors":[
                {
                        "name": "Fernando Andre",
                        "email": "netriver@gmail.com"
                }
        ],
    "config": {
        "bin-dir": "bin"
    },
    "minimum-stability": "stable"
}

cat public / index.php

<?php

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
/*
set_include_path(implode(PATH_SEPARATOR, array(
     realpath(APPLICATION_PATH . '/../library'),
     realpath(APPLICATION_PATH . '/../vendor/zendframework/zendframework1/library'),
     get_include_path()
)));
*/
require_once realpath(APPLICATION_PATH . '/../vendor/autoload.php');

/** Zend_Application */
require_once 'Zend/Application.php';

// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV,
    APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
            ->run();