Action
classe Action (Voir la source)
Constantes
| private INJECTION_EXCEPTION_TYPE | 
                     
  | 
            
Méthodes
                    __construct(array $namespaces, array $middlewares)
        
                                            
                
            Action constructor
                    static Action
                
                
                    getInstance()
        
                                            
                
            Retrieves Action instance
                    void
                
                
                    pushMiddleware(array $middlewares, bool $end = false)
        
                                            
                
            Add a middleware to the list
                    void
                
                
                    pushNamespace(array|string $namespace)
        
                                            
                
            Adding a namespace to the list
                    mixed
                
                
                    call(callable|string|array $actions, array|null $param = null)
        
                                            
                
            Callback launcher
                    mixed
                
                
                    execute(array|callable $function, array $arg)
        
                                            
                
            Successively launches a function list.
                    array|null
                
                
                    controller(string $controller_name)
        
                                            
                
            Load the controllers defined as string
                    array
                
                
                    injector(string $classname, string|null $method = null)
        
                                            
                
            Make any class injection
                    array
                
                
                    injectorForClosure(callable $closure)
        
                                            
                
            Injection for closure
Détails
        
                            
    __construct(array $namespaces, array $middlewares)
        
    
    Action constructor
        
                static            Action
    configure(array $namespaces, array $middlewares)
        
    
    Action configuration
        
                static            Action
    getInstance()
        
    
    Retrieves Action instance
        
                            void
    pushMiddleware(array $middlewares, bool $end = false)
        
    
    Add a middleware to the list
        
                            void
    pushNamespace(array|string $namespace)
        
    
    Adding a namespace to the list
        
                            mixed
    call(callable|string|array $actions, array|null $param = null)
        
    
    Callback launcher
        
                            mixed
    execute(array|callable $function, array $arg)
        
    
    Successively launches a function list.
        
                            array|null
    controller(string $controller_name)
        
    
    Load the controllers defined as string
        
                            array|null
    closure(Closure $closure)
        
    
    Load the closure define as action
        
                            array
    injector(string $classname, string|null $method = null)
        
    
    Make any class injection
        
                            array
    injectorForClosure(callable $closure)
        
    
    Injection for closure