Overview

Namespaces

  • PHPixie
    • Auth
      • Context
        • Container
      • Domains
      • Providers
        • Builder
        • Provider
      • Repositories
        • Registry
        • Repository
    • AuthHTTP
      • Providers
    • AuthLogin
      • Providers
      • Repository
    • AuthORM
      • Repositories
        • Repository
        • Type
          • Login
    • AuthProcessors
      • Processor
    • BundleFramework
      • Configuration
        • FilesystemLocator
        • ORM
    • Bundles
      • Bundle
        • Provides
      • FilesystemLocators
      • Processors
    • Config
      • Formats
        • Format
      • Storages
        • Storage
          • Editable
        • Type
    • Database
      • Conditions
        • Builder
          • Container
          • Operators
        • Condition
          • Collection
          • Field
        • Logic
      • Connection
      • Driver
        • Mongo
          • Conditions
            • Builder
          • Parser
            • Conditions
          • Query
            • Type
        • PDO
          • Adapter
            • Mysql
              • Parser
            • Pgsql
              • Parser
            • Sqlite
              • Parser
          • Conditions
            • Builder
          • Query
            • Type
      • Exception
      • Parser
      • Query
        • Implementation
        • Type
          • Update
      • Type
        • Document
          • Conditions
            • Builder
            • Condition
              • Collection
                • Embedded
                  • Group
                  • Placeholder
          • Query
            • Implementation
        • SQL
          • Conditions
            • Builder
          • Parser
          • Query
            • Implementation
            • Type
      • Values
    • Debug
      • Logger
      • Tracer
        • Trace
    • DefaultBundle
      • Processor
        • HTTP
    • Filesystem
      • Locators
        • Locator
    • Framework
      • Extensions
        • Template
          • Extension
      • Processors
        • HTTP
          • Response
    • HTTP
      • Context
        • Container
        • Cookies
        • Session
      • Data
        • Headers
      • Messages
        • Message
          • Request
            • ServerRequest
        • Stream
        • UploadedFile
        • URI
      • Responses
    • HTTPProcessors
      • Parsers
        • Parser
      • Processor
        • Actions
        • Dispatcher
          • Builder
          • Registry
    • ORM
      • Conditions
        • Builder
        • Condition
          • Collection
            • RelatedTo
          • Field
          • In
      • Configs
      • Data
        • Diff
        • Type
        • Types
          • Document
            • Node
              • ArrayNode
      • Drivers
        • Driver
          • Mongo
          • PDO
          • SQL
      • Exception
      • Loaders
        • Loader
          • Embedded
          • Proxy
          • Repository
      • Mappers
        • Cascade
          • Mapper
        • Conditions
        • Preload
      • Maps
        • Map
          • Cascade
          • Property
      • Models
        • Model
          • Implementation
        • Type
          • Database
            • Implementation
          • Embedded
            • Implementation
      • Planners
        • Planner
          • In
            • Strategy
          • Pivot
            • Strategy
          • Query
            • Strategy
      • Plans
        • Plan
          • Query
      • Relationships
        • Relationship
          • Handler
            • Cascading
            • Mapping
          • Implementation
            • Preloader
              • Result
                • Multiple
            • Property
            • Side
          • Property
            • Entity
          • Side
            • Cascade
            • Property
          • Type
        • Type
          • Embeds
            • Preload
            • Property
            • Side
            • Type
              • Many
                • Preload
                • Property
                  • Entity
                • Side
              • One
                • Preload
                • Property
                  • Entity
                • Side
          • ManyToMany
            • Property
            • Side
          • OneTo
            • Preloader
            • Property
              • Entity
              • Query
            • Side
            • Type
              • Many
                • Preloader
                  • Property
                • Property
                  • Entity
                  • Query
                • Side
                • Value
                  • Preload
              • One
                • Preloader
                • Property
                • Side
      • Steps
        • Result
        • Step
          • Pivot
          • Query
            • Insert
              • Batch
                • Data
            • Result
          • Update
      • Values
        • Preload
          • Property
        • Update
      • Wrappers
        • Model
        • Type
          • Database
          • Embedded
    • Paginate
      • Loader
    • PaginateORM
      • Loader
    • Processors
      • Processor
        • Dispatcher
    • Route
      • Exception
      • Matcher
      • Resolvers
        • Resolver
          • Pattern
      • Translator
    • Security
      • Tokens
        • Storage
          • Database
    • Slice
      • Data
        • Slice
      • Type
        • ArrayData
        • Slice
    • Template
      • Extensions
        • Extension
      • Formats
      • Renderer
    • Test
  • Project
    • App
      • HTTPProcessors
    • Framework
  • Psr
    • Http
      • Message

Classes

  • Assets
  • Builder
  • Components
  • Context
  • Extensions
  • HTTP
  • Processors

Interfaces

  • Configuration
  • Overview
  • Namespace
  • Class
  • Tree
  • Return

Class HTTP

HTTP processing chain

Override its methods to hook into request processing

Namespace: PHPixie\Framework
Located at vendor/phpixie/framework/src/PHPixie/Framework/HTTP.php
Methods summary
public
# __construct( PHPixie\Framework\Builder $builder )

Constructor

Constructor

Parameters

$builder
public PHPixie\Processors\Processor
# processor( )

Get HTTP processor

Get HTTP processor

The resulting processor accepts a PSR7 ServerRequest and returns a PHPixie Response

Returns

PHPixie\Processors\Processor
public PHPixie\Route\Translator
# routeTranslator( )

HTTP route translator

HTTP route translator

Returns

PHPixie\Route\Translator
protected mixed
# instance( string $name )

Parameters

$name

Returns

mixed
protected PHPixie\Route\Translator
# buildRouteTranslator( )

Returns

PHPixie\Route\Translator
public
# processSapiRequest( )

Process a PHP request from globals and output the response

Process a PHP request from globals and output the response

public Psr\Http\Message\ResponseInterface
# processServerRequest( Psr\Http\Message\ServerRequestInterface $serverRequest )

Process a PSR7 ServerRequest into a PSR7 Response

Process a PSR7 ServerRequest into a PSR7 Response

Parameters

$serverRequest

Returns

Psr\Http\Message\ResponseInterface
protected PHPixie\Processors\Processor
# buildProcessor( )

Builds the HTTP request processor

Builds the HTTP request processor

Returns

PHPixie\Processors\Processor
protected PHPixie\Processors\Processor
# requestProcessor( )

Builds the processor that takes care of generating the PHPixie HTTP Request

Builds the processor that takes care of generating the PHPixie HTTP Request

Returns

PHPixie\Processors\Processor
protected PHPixie\Processors\Processor
# contextProcessor( )

Builds the processor that takes care of setting contexts (e.g. HTTP and Auth context)

Builds the processor that takes care of setting contexts (e.g. HTTP and Auth context)

Returns

PHPixie\Processors\Processor
protected PHPixie\Processors\Processor
# parseRouteProcessor( )

Builds the processor that takes care of parsing the Request and populating route data

Builds the processor that takes care of parsing the Request and populating route data

Returns

PHPixie\Processors\Processor
protected PHPixie\Processors\Processor
# dispatchProcessor( )

Builds the processor that takes care of dispatching the request.

Builds the processor that takes care of dispatching the request.

If you want to process the request before it reaches your code, you can do that by overriding this method and adding your own processor to the chain.

Returns

PHPixie\Processors\Processor
protected PHPixie\Processors\Processor
# exceptionProcessor( )

Builds the processor that handles uncaught exception

Builds the processor that handles uncaught exception

Returns

PHPixie\Processors\Processor
protected PHPixie\Processors\Processor
# notFoundProcessor( )

Builds the processor that handles non-existing urls

Builds the processor that handles non-existing urls

Returns

PHPixie\Processors\Processor
Properties summary
protected $builder

Type

Builder
#
protected PHPixie\Slice\Data $configData
#
protected array $instances
# array()
PHPixie 3 API API documentation generated by ApiGen