LFT
  • Namespace
  • Class
  • Tree

Namespaces

  • Docoflow
    • Contracts
    • Entity
    • Facades
    • Models
    • Traits
  • Docolight
    • Agno
      • Traits
    • Container
    • Http
      • Contracts
    • Rest
      • Handler
      • Http
    • Support
      • Debug
      • Traits
  • Docotory
    • Traits
  • None

Classes

  • Headers
  • JsonResponse
  • MimeResponse
  • Response
  • ResponseFactory

Class ResponseFactory

A factory class to wrap all responses to a single instance resolver.

Docolight\Support\Factory
Extended by Docolight\Http\ResponseFactory
Namespace: Docolight\Http
Author: Krisan Alfa Timur krisanalfa@docotel.co.id
Located at Docolight/Http/ResponseFactory.php

Methods summary

public string
# getDefaultProduct( )

Get the default product name.

Get the default product name.

Returns

string
protected string
# getMethod( string $product )

Get method to create product.

Get method to create product.

Parameters

$product

Returns

string

Overrides

Docolight\Support\Factory::getMethod
protected Docolight\Http\Response
# createBaseResponse( )

Create Response instance

Create Response instance

Returns

Docolight\Http\Response
protected Docolight\Http\JsonResponse
# createJsonResponse( )

Create JsonResponse instance.

Create JsonResponse instance.

Returns

Docolight\Http\JsonResponse

Methods inherited from Docolight\Support\Factory

__call(), __construct(), callCustomCreator(), createProduct(), extend(), produce()

Properties summary

Properties inherited from Docolight\Support\Factory

$container, $customCreators, $products

LFT API documentation generated by ApiGen