public function getSchedulerAction(Request $request)
    {
        /** @var LiveInformation $information */
        $information = $this->app['task-manager.live-information'];
        $data = $information->getManager();

        return Result::create($request, [
            'scheduler' => [
                'configuration' => $data['configuration'],
                'state' => $data['actual'],
                'status' => $data['actual'],
                'pid' => $data['process-id'],
                'process-id' => $data['process-id'],
                'updated_on' => (new \DateTime())->format(DATE_ATOM),
            ],
        ])->createResponse();
    }
public function getSchedulerAction(Request $request)
    {
        /** @var LiveInformation $information */
        $information = $this->app['task-manager.live-information'];
        $data = $information->getManager();

        return Result::create($request, [
            'scheduler' => [
                'configuration' => $data['configuration'],
                'state' => $data['actual'],
                'status' => $data['actual'],
                'pid' => $data['process-id'],
                'process-id' => $data['process-id'],
                'updated_on' => (new \DateTime())->format(DATE_ATOM),
            ],
        ])->createResponse();
    }
public function getSchedulerAction ( Request $ request ) { /** @var LiveInformation $information */ $ information = $ this -> app [ 'task-manager.live-information' ] ; $ data = $ information -> getManager ( ) ; return Result :: create ( $ request , [ 'scheduler' => [ 'configuration' => $ data [ 'configuration' ] , 'state' => $ data [ 'actual' ] , 'status' => $ data [ 'actual' ] , 'pid' => $ data [ 'process-id' ] , 'process-id' => $ data [ 'process-id' ] , 'updated_on' => ( new \ DateTime ( ) ) -> format ( DATE_ATOM ) , ] , ] ) -> createResponse ( ) ; }
Return an array of key-values information about scheduler

@param Request $request
@return Response
Return an array of key - values information about scheduler