I have Composer in my PHP project installed, and want to use the autoloader. On this page I read how the composer.json file should look like and that I should run the command dump-autoload. My composer.json file looks as follows
{
    "require-dev":{
        "phpunit/phpunit":"4.5.*",
        "autoload":{
            "psr-0":{
                "Yii\\":"yii-1.1.14.f0fee9/"
            }
        }
    }
}
When I run from the terminal php composer.phar dump-autoload, I get the following error message.

- What second parameter and what array is it talking about?
 - How can I solve this issue to generate a new 
autoload.phpfile? 
                        
autoloadshould be moved out ofrequire-dev:You can test your composer.json file using
composer validate. Your original file returned: