AI
1 year ago
AIContent
1 year ago
Assets
3 weeks ago
BlockTypes
1 week ago
Domain
1 month ago
Images
1 year ago
Integrations
2 years ago
Patterns
6 months ago
Payments
5 months ago
Registry
2 years ago
SharedStores
1 month ago
Shipping
7 months ago
Templates
1 month ago
Utils
3 weeks ago
Assets.php
2 years ago
AssetsController.php
3 weeks ago
BlockPatterns.php
7 months ago
BlockTemplatesController.php
7 months ago
BlockTemplatesRegistry.php
10 months ago
BlockTypesController.php
3 weeks ago
DependencyDetection.php
5 months ago
InboxNotifications.php
2 years ago
Installer.php
1 month ago
Library.php
2 years ago
Options.php
2 years ago
Package.php
1 year ago
QueryFilters.php
7 months ago
TemplateOptions.php
1 year ago
Library.php
45 lines
| 1 | <?php |
| 2 | namespace Automattic\WooCommerce\Blocks; |
| 3 | |
| 4 | use Automattic\WooCommerce\Blocks\BlockTypes\AtomicBlock; |
| 5 | use Automattic\WooCommerce\Blocks\Package; |
| 6 | use Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry; |
| 7 | use Automattic\WooCommerce\Blocks\Assets\Api as AssetApi; |
| 8 | use Automattic\WooCommerce\Blocks\Integrations\IntegrationRegistry; |
| 9 | |
| 10 | /** |
| 11 | * Library class. |
| 12 | * |
| 13 | * @deprecated 5.0.0 This class will be removed in a future release. This has been replaced by BlockTypesController. |
| 14 | * @internal |
| 15 | */ |
| 16 | class Library { |
| 17 | |
| 18 | /** |
| 19 | * Initialize block library features. |
| 20 | * |
| 21 | * @deprecated 5.0.0 |
| 22 | */ |
| 23 | public static function init() { |
| 24 | _deprecated_function( 'Library::init', '5.0.0' ); |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * Register custom tables within $wpdb object. |
| 29 | * |
| 30 | * @deprecated 5.0.0 |
| 31 | */ |
| 32 | public static function define_tables() { |
| 33 | _deprecated_function( 'Library::define_tables', '5.0.0' ); |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * Register blocks, hooking up assets and render functions as needed. |
| 38 | * |
| 39 | * @deprecated 5.0.0 |
| 40 | */ |
| 41 | public static function register_blocks() { |
| 42 | _deprecated_function( 'Library::register_blocks', '5.0.0' ); |
| 43 | } |
| 44 | } |
| 45 |