Media News§
This commit is contained in:
parent
3e9aff64ac
commit
0a34cdefb7
@ -62,4 +62,5 @@ return [
|
||||
Symfony\UX\Chartjs\ChartjsBundle::class => ['all' => true],
|
||||
Symfonycasts\TailwindBundle\SymfonycastsTailwindBundle::class => ['all' => true],
|
||||
Symfonycasts\SassBundle\SymfonycastsSassBundle::class => ['all' => true],
|
||||
Dunglas\DoctrineJsonOdm\Bundle\DunglasDoctrineJsonOdmBundle::class => ['all' => true]
|
||||
];
|
||||
|
||||
@ -87,7 +87,7 @@ class News
|
||||
#[ORM\Column(name: 'to_date', type: 'datetime')]
|
||||
protected ?\DateTime $toDate;
|
||||
|
||||
#[ORM\Column(name: 'media', type: 'json')]
|
||||
#[ORM\Column(name: 'media', type: 'json_document', options: ['jsonb' => true])]
|
||||
public $media = [];
|
||||
/**
|
||||
* enable
|
||||
|
||||
@ -173,7 +173,6 @@ class Base
|
||||
$this->buildHeaders()
|
||||
,
|
||||
]);
|
||||
var_dump($response->getContent(true));
|
||||
$content = $response->toArray();
|
||||
|
||||
return $content;
|
||||
|
||||
@ -18,14 +18,16 @@ class PutConfig extends Base
|
||||
}
|
||||
|
||||
$resultLangPropertyValues = $this->getCache()->get(
|
||||
'saxoprint_result_lang_property_values', function (ItemInterface $item) {
|
||||
'saxoprint_result_lang_property_values',
|
||||
function (ItemInterface $item) {
|
||||
// $item->expiresAfter(3600);
|
||||
return $this->get('config/' . $this->customerNumber .'/texts/propertyvalue/de-DE');
|
||||
|
||||
}
|
||||
);
|
||||
$resultLangProperty = $this->getCache()->get(
|
||||
'saxoprint_result_lang_property', function (ItemInterface $item) {
|
||||
'saxoprint_result_lang_property',
|
||||
function (ItemInterface $item) {
|
||||
// $item->expiresAfter(3600);
|
||||
return $this->get('config/' . $this->customerNumber . '/texts/property/de-DE');
|
||||
}
|
||||
@ -33,7 +35,6 @@ class PutConfig extends Base
|
||||
|
||||
$result = $this->put(sprintf("config/%s/%s/configurations", $this->customerNumber, $this->getProductId()), $this->buildData());
|
||||
|
||||
var_dump($result);
|
||||
$tmp = ['property' => [], 'custom' => []];
|
||||
|
||||
foreach ($result['ValidOptions'] as $key => $value) {
|
||||
@ -74,8 +75,7 @@ class PutConfig extends Base
|
||||
{
|
||||
$temp = [];
|
||||
$tempCustom = [];
|
||||
foreach($this->config['property'] as $key => $value)
|
||||
{
|
||||
foreach ($this->config['property'] as $key => $value) {
|
||||
if ($key == '102' || $key == 'auflage') {
|
||||
continue;
|
||||
}
|
||||
@ -84,8 +84,7 @@ class PutConfig extends Base
|
||||
}
|
||||
}
|
||||
if (isset($this->config['custom'])) {
|
||||
foreach($this->config['custom'] as $key => $value)
|
||||
{
|
||||
foreach ($this->config['custom'] as $key => $value) {
|
||||
if ($value != 0) {
|
||||
$tempCustom[$key] = intval($value);
|
||||
}
|
||||
|
||||
@ -126,8 +126,6 @@ class SaxoprintController extends AbstractController
|
||||
$putConfig->setConfig($reqConfig);
|
||||
$config = $putConfig->call();
|
||||
}
|
||||
var_dump($config);
|
||||
die();
|
||||
|
||||
$getPrices->setShop($shop->getMongoShopByUid($product->getShop()->getUid()));
|
||||
$getPrices->setProductId((int)$request->get('saxoprintProductId'));
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
Loading…
Reference in New Issue
Block a user