$streamId =
(int) $this->
Request()->
getParam('streamId'
);
$total =
(int) $this->
Request()->
getParam('total'
);
$snippets =
$this->container->
get('snippets'
)->
getNamespace('backend/customer/view/main'
);
$stream =
$this->container->
get(ModelManager::
class)->
find(CustomerStream::
class,
$streamId);
if (!
$stream instanceof CustomerStream
) { $this->
View()->
assign('success', false
);
return;
} if ($stream->
getFreezeUp()) { $this->
View()->
assign([ 'success' => true,
'finish' => true,
'progress' => 1,
'text' =>
$snippets->
get('stream_refreshed'
),
]);
return;
} $iteration =
(int) $this->
Request()->
getParam('iteration', 1
);