mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 09:00:18 +01:00 
			
		
		
		
	[Nostromo] Refactor MageApplication
This commit is contained in:
		
							parent
							
								
									bf458cc35c
								
							
						
					
					
						commit
						8090ebf65b
					
				@ -79,25 +79,14 @@ class MageApplication extends Application
 | 
				
			|||||||
            $this->runtime = new Runtime();
 | 
					            $this->runtime = new Runtime();
 | 
				
			||||||
            $this->runtime->setConfiguration($config);
 | 
					            $this->runtime->setConfiguration($config);
 | 
				
			||||||
            $this->runtime->setLogger($logger);
 | 
					            $this->runtime->setLogger($logger);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            $this->loadBuiltInCommands();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            throw new RuntimeException(sprintf('The file "%s" does not have a valid Magallanes configuration.', $file));
 | 
					            throw new RuntimeException(sprintf('The file "%s" does not have a valid Magallanes configuration.', $file));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					 | 
				
			||||||
     * Run the Application
 | 
					 | 
				
			||||||
     *
 | 
					 | 
				
			||||||
     * @param InputInterface $input
 | 
					 | 
				
			||||||
     * @param OutputInterface $output
 | 
					 | 
				
			||||||
     * @throws RuntimeException
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    public function run(InputInterface $input = null, OutputInterface $output = null)
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        $this->loadBuiltInCommands();
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        parent::run();
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Loads the BuiltIn Commands
 | 
					     * Loads the BuiltIn Commands
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user