| @@ -1,12 +1,12 @@ | ||
| 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\Plugin; |
| 7 | 6 | use Elementor\Core\Files\CSS\Post as Post_CSS; |
| 8 | 7 | use Elementor\Modules\Variables\PropTypes\Font_Variable_Prop_Type; |
| 8 | +use Elementor\Modules\Variables\Storage\Repository as Variables_Repository; | |
| 9 | 9 | |
| 10 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | 11 | exit; // Exit if accessed directly. |
| 12 | 12 | } |
| @@ -11,12 +11,12 @@ | ||
| 11 | 11 | exit; // Exit if accessed directly. |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | class Fonts { |
| 15 | - private Variables_Service $service; | |
| 15 | + private Variables_Repository $repository; | |
| 16 | 16 | |
| 17 | - public function __construct( Variables_Service $service ) { | |
| 18 | - $this->service = $service; | |
| 17 | + public function __construct( Variables_Repository $repository ) { | |
| 18 | + $this->repository = $repository; | |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function append_to( Post_CSS $post_css ) { |
| 22 | 22 | if ( ! Plugin::$instance->kits_manager->is_kit( $post_css->get_post_id() ) ) { |
| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | if ( ! Plugin::$instance->kits_manager->is_kit( $post_css->get_post_id() ) ) { |
| 23 | 23 | return; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - $list_of_variables = $this->service->get_variables_list(); | |
| 26 | + $list_of_variables = $this->repository->variables(); | |
| 27 | 27 | |
| 28 | 28 | foreach ( $list_of_variables as $variable ) { |
| 29 | 29 | if ( Font_Variable_Prop_Type::get_key() !== $variable['type'] ) { |
| 30 | 30 | continue; |