Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
Setup
Declaration
Schema
Dto
Factories
Blob.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Setup\Declaration\Schema\Dto\Factories
;
7
8
use
Magento\Framework\ObjectManagerInterface
;
9
13
class
Blob
implements
FactoryInterface
14
{
18
const
DEFAULT_BLOB_LENGTH
= 65536;
19
23
private
$objectManager;
24
28
private
$className;
29
36
public
function
__construct
(
37
ObjectManagerInterface
$objectManager,
38
$className = \
Magento
\Framework\Setup\Declaration\
Schema
\Dto\Columns\Blob::class
39
) {
40
$this->objectManager =
$objectManager
;
41
$this->className = $className;
42
}
43
47
public
function
create
(array
$data
)
48
{
49
if
(!isset(
$data
[
'length'
])) {
50
$data
[
'length'
] =
self::DEFAULT_BLOB_LENGTH
;
51
}
52
53
return
$this->objectManager->create($this->className,
$data
);
54
}
55
}
Magento\Framework\Setup\Declaration\Schema\Dto\Factories\Blob\create
create(array $data)
Definition:
Blob.php:47
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Framework\ObjectManagerInterface
Definition:
ObjectManagerInterface.php:12
Magento\Framework\Setup\Declaration\Schema\Dto\Factories
Definition:
Blob.php:6
Magento\Framework\Setup\Declaration\Schema\Dto\Factories\Blob
Definition:
Blob.php:13
Magento\Framework\Setup\Declaration\Schema\Dto\Factories\FactoryInterface
Definition:
FactoryInterface.php:13
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\Setup\Declaration\Schema\Dto\Factories\Blob\__construct
__construct(ObjectManagerInterface $objectManager, $className=\Magento\Framework\Setup\Declaration\Schema\Dto\Columns\Blob::class)
Definition:
Blob.php:36
Magento
Magento\Framework\Setup\Declaration\Schema\Dto\Factories\Blob\DEFAULT_BLOB_LENGTH
const DEFAULT_BLOB_LENGTH
Definition:
Blob.php:18
Magento\Framework\Setup\Declaration\Schema\Dto\Schema
Definition:
Schema.php:15