| @@ -1,9 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | namespace Elementor\Modules\Variables\Classes; |
| 4 | 4 | |
| 5 | -use Elementor\Modules\Variables\Services\Variables_Service; | |
| 6 | 5 | use Elementor\Modules\Variables\Storage\Repository as Variables_Repository; |
| 7 | 6 | |
| 8 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | 8 | exit; // Exit if accessed directly. |
| @@ -11,10 +10,10 @@ | ||
| 11 | 10 | |
| 12 | 11 | class Variables { |
| 13 | 12 | private static $lookup = []; |
| 14 | 13 | |
| 15 | - public static function init( Variables_Service $service ) { | |
| 16 | - self::$lookup = $service->get_variables_list(); | |
| 14 | + public static function init( Variables_Repository $repository ) { | |
| 15 | + self::$lookup = $repository->variables(); | |
| 17 | 16 | } |
| 18 | 17 | |
| 19 | 18 | public static function by_id( string $id ) { |
| 20 | 19 | return self::$lookup[ $id ] ?? null; |