mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-06 12:02:32 +02:00
Namespace all 174 Public controllers into XcVm\Public\Controllers\<Admin|Api| Player|Reseller>, completing the per-file namespace migration. View templates and entry points (index.php, admin/*.php, stream/*.php, progress/, routes/*.php, Views/*) stay procedural/global and only gain use imports. - Split the 3 multi-class Api files per PSR-4: AdminApiController→+AdminAPIWrapper, Enigma2ApiController→+SimpleXMLExtended (extends \SimpleXMLElement), ResellerRestApiController→+ResellerAPIWrapper (use-block copied to each new file). - Add use to referrers — the procedural route files (routes/admin|player|reseller.php) and index.php now import each routed controller; sibling controllers extend their base class in the same namespace. - Qualify built-ins/ioncube/global in the namespaced controllers (\Exception, \DateTime, \PDO, \SimpleXMLElement, \ZipArchive, \ReflectionClass, \XC_Bootstrap, \XC_VM, ...). Verified zero unresolved classes by temporarily analysing src/Public/Controllers under PHPStan, then reverting to scanDirectories (the ~346 pre-existing legacy findings there are out of scope for this migration). Verified: php -l clean; PHPStan no errors; PHPUnit 295/295; no global controller class-files remain; leading-backslash re-sweep clean.
24 lines
590 B
PHP
24 lines
590 B
PHP
<?php
|
|
|
|
namespace XcVm\Public\Controllers\Admin;
|
|
|
|
/**
|
|
* QueueController — Encoding Queue.
|
|
*
|
|
* @renders Views/admin/queue.php
|
|
*
|
|
* @package XC_VM_Public_Controllers_Admin
|
|
* @author Divarion_D <https://github.com/Divarion-D>
|
|
* @copyright 2025-2026 Vateron Media
|
|
* @link https://github.com/Vateron-Media/\XC_VM
|
|
* @license AGPL-3.0 https://www.gnu.org/licenses/agpl-3.0.html
|
|
*/
|
|
|
|
class QueueController extends BaseAdminController {
|
|
public function index() {
|
|
$this->requirePermission();
|
|
$this->setTitle('Encoding Queue');
|
|
$this->render('queue');
|
|
}
|
|
}
|