| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Core\Utils; |
| 4 |
|
| 5 |
use Elementor\Plugin; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; // Exit if accessed directly. |
| 9 |
} |
| 10 |
|
| 11 |
abstract class Isolation_Manager { |
| 12 |
/** |
| 13 |
* @param string $adapter_name |
| 14 |
*/ |
| 15 |
public static function get_adapter( string $adapter_name ) { |
| 16 |
try { |
| 17 |
return Plugin::$instance->elementor_container() |
| 18 |
->get( $adapter_name ); |
| 19 |
} catch ( Exception $e ) { |
| 20 |
return null; |
| 21 |
} |
| 22 |
} |
| 23 |
} |
| 24 |
|