protected function handleCustomIni($command)
    {
        // If --ini parameter was not specified, just return the command
        // is at has been constructed.
        if (!$this->option('ini')) {
            return $command;
        }

        // Additional parameter will not work when escaped with single quotes.
        $command = str_replace("'", '', $command);

        // Determine the path
        $iniPath = ($this->option('ini-path') === $this->defaultIniPath)
          ? $this->laravel->basePath() . '/' . $this->defaultIniPath
          : $this->option('ini-path');

        $iniPath = realpath($iniPath);

        $this->info('Loading custom configuration file: ' . $iniPath, 'v');

        if (!file_exists($iniPath)) {
            $this->warn(sprintf(
              'File %s does not exist. Custom configuration will not be loaded.',
              $iniPath
            ));
        }

        // Append PHP parameter with a path to the configuration file.
        $command .= ' -c ' . $iniPath;

        return $command;
    }