Amazon_S3_And_CloudFront::__construct PHP Method

__construct() public method

public __construct ( string $plugin_file_path, Amazon_Web_Services $aws, string | null $slug = null )
$plugin_file_path string
$aws Amazon_Web_Services
$slug string | null
    function __construct($plugin_file_path, $aws, $slug = null)
    {
        $this->plugin_slug = is_null($slug) ? 'amazon-s3-and-cloudfront' : $slug;
        parent::__construct($plugin_file_path);
        $this->aws = $aws;
        $this->notices = AS3CF_Notices::get_instance($this);
        $this->init($plugin_file_path);
    }

Usage Example

 /**
  * @param string              $plugin_file_path
  * @param Amazon_Web_Services $aws aws plugin
  */
 function __construct($plugin_file_path, $aws)
 {
     parent::__construct($plugin_file_path, $aws, 'amazon-s3-and-cloudfront-pro');
 }
Amazon_S3_And_CloudFront