Edit File: hardened_php.cpython-311.pyc
� �gh�6 � � � d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dlm Z m Z d dlmZm Z d dlmZ d dlmZmZmZmZ d dlmZ d dlmZmZmZmZmZ ej e� � Z G d � d � � Z G d� de e� � Z! G d � de e� � Z" G d� de� � Z# G d� de#� � Z$ G d� de!� � Z% G d� de%� � Z&de e fd�Z'dS )� N)�abstractmethod)�List�Optional)�Core� Packaging)� LicenseCLN)�AbstractFeature�FeatureError� FeatureStatus�ea4_only)�cPanel)� OsReleaseInfo� check_run�run�run_cmd_and_log� os_versionc � � e Zd ZdZdZdZeddee fd�� � Z edefd�� � Z ed� � � Zeede fd �� � � � Zed � � � Zede fd�� � Zej d� � � Zej d � � � Zdefd�ZdS )�SimpleInstallerMixIna� This is a mixin class implementing common case installation scenario. Installation is supposed to be through a single command cls.INSTALL_CMD. Removal is done through interpolating a space separated list of package names to remove into cls.REMOVE_CMD_TMPL. List of packages to remove is obtained by collecting all installed alt-php* packages except those we want to keep (as returned by required_packages()). z /bin/falseN�enabledc � � d S �N� ��selfr s �W/opt/imunify360/venv/lib/python3.11/site-packages/im360/subsys/features/hardened_php.py� generate_repoz"SimpleInstallerMixIn.generate_repo, � � ��� c � � K � d S r r r s r �pre_install_cmdz$SimpleInstallerMixIn.pre_install_cmd0 � � � � ��r c � � d S r r �r s r �remove_repoz SimpleInstallerMixIn.remove_repo4 r r �returnc � �"