Added optional --optimize flag to composer dump-autoload

For production environments --optimize should be used