JeroenG\Packager\PackagerNewCommand::interactiveReplace PHP Метод

interactiveReplace() защищенный Метод

protected interactiveReplace ( $vendor, $name, $fullPath )
    protected function interactiveReplace($vendor, $name, $fullPath)
    {
        $author = $this->ask('Who is the author?');
        $authorEmail = $this->ask('What is the author\'s e-mail?');
        $authorSite = $this->ask('What is the author\'s website?');
        $description = $this->ask('How would you describe the package?');
        $license = $this->ask('Under which license will it be released?');
        $homepage = $this->ask('What is going to be the package website?', 'https://github.com/' . $vendor . '/' . $name);
        $search = [':author_name', ':author_email', ':author_website', ':package_description', 'MIT', 'https://github.com/' . $vendor . '/' . $name];
        $replace = [$author, $authorEmail, $authorSite, $description, $license, $homepage];
        $this->helper->replaceAndSave($fullPath . '/composer.json', $search, $replace);
    }