src/Plugin.php
protected function setPatchedPackageData(PackageInterface $package, array $patchesAppliedData)
    {
        $extra = $package->getExtra();
        $extra['patches_applied'] = $patchesAppliedData;
        $package->setExtra($extra);
        $this->composer->getRepositoryManager()->getLocalRepository()->write();
    }
protected function setPatchedPackageData(PackageInterface $package, array $patchesAppliedData)
    {
        $extra = $package->getExtra();
        $extra['patches_applied'] = $patchesAppliedData;
        $package->setExtra($extra);
        $this->composer->getRepositoryManager()->getLocalRepository()->write();
    }
protected function setPatchedPackageData ( PackageInterface $ package , array $ patchesAppliedData ) { $ extra = $ package -> getExtra ( ) ; $ extra [ 'patches_applied' ] = $ patchesAppliedData ; $ package -> setExtra ( $ extra ) ; $ this -> composer -> getRepositoryManager ( ) -> getLocalRepository ( ) -> write ( ) ; }
Persist the patches_applied to the package extra section.

@param \Composer\Package\PackageInterface $package
@param array $patchesAppliedData
Persist the patches_applied to the package extra section .