ConsoleAwareTrait
trait ConsoleAwareTrait (View source)
A trait that provides awareness of the console to objects
Properties
| protected Application|null | $traitConsole | ||
| protected OutputInterface|null | $traitOutput | ||
| protected InputInterface|null | $traitInput | 
Methods
                    setConsole(Application $console, OutputInterface $output = null, InputInterface $input = null)
        
                                            
                
            Set the console object
                    setOutput(OutputInterface $output)
        
                                            
                
            Set the output object to use
                    setInput(InputInterface $input)
        
                                            
                
            Set the input object to use
                    OutputInterface
                
                
                    getOutput()
        
                                            
                
            Get an output object
                    InputInterface
                
                
                    getInput()
        
                                            
                
            Get an input object
                    bool
                
                
                    hasConsole()
        
                                            
                
            Find out if we are in console context
Details
        
                            ConsoleAwareTrait
    setConsole(Application $console, OutputInterface $output = null, InputInterface $input = null)
        
    
    Set the console object
        
                            ConsoleAwareTrait
    setOutput(OutputInterface $output)
        
    
    Set the output object to use
        
                            ConsoleAwareTrait
    setInput(InputInterface $input)
        
    
    Set the input object to use
        
                    protected        OutputInterface
    getOutput()
        
    
    Get an output object
        
                    protected        InputInterface
    getInput()
        
    
    Get an input object
        
                    protected        bool
    hasConsole()
        
    
    Find out if we are in console context