REBELinBLUE\Deployer\Http\Controllers\DashboardController::cctray PHP Метод

cctray() публичный Метод

Generates an XML file for CCTray.
public cctray ( REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface $projectRepository ) : Illuminate\View\View
$projectRepository REBELinBLUE\Deployer\Contracts\Repositories\ProjectRepositoryInterface
Результат Illuminate\View\View
    public function cctray(ProjectRepositoryInterface $projectRepository)
    {
        $projects = $projectRepository->getAll();
        foreach ($projects as $project) {
            $project->latest_deployment = $project->deployments->first();
        }
        return Response::view('cctray', ['projects' => $projects])->header('Content-Type', 'application/xml');
    }