public function add()
	{
		// Get the hook we're setting
		$trigger = $this->arguments->getOpt(3);
		$hook    = $this->arguments->getOpt(4);

		// Delete the primary args so they aren't added as top level config values
		$this->arguments->deleteOpt(3);
		$this->arguments->deleteOpt(4);

		// Set the new hooks argument
		$this->arguments->setOpt('hooks', array($trigger => array($hook)));

		// Redirect back to the basic configuration set method
		App::get('client')->call('configuration', 'set', $this->arguments, $this->output);
	}
public function add()
	{
		// Get the hook we're setting
		$trigger = $this->arguments->getOpt(3);
		$hook    = $this->arguments->getOpt(4);

		// Delete the primary args so they aren't added as top level config values
		$this->arguments->deleteOpt(3);
		$this->arguments->deleteOpt(4);

		// Set the new hooks argument
		$this->arguments->setOpt('hooks', array($trigger => array($hook)));

		// Redirect back to the basic configuration set method
		App::get('client')->call('configuration', 'set', $this->arguments, $this->output);
	}
public function add ( ) { // Get the hook we're setting $ trigger = $ this -> arguments -> getOpt ( 3 ) ; $ hook = $ this -> arguments -> getOpt ( 4 ) ; // Delete the primary args so they aren't added as top level config values $ this -> arguments -> deleteOpt ( 3 ) ; $ this -> arguments -> deleteOpt ( 4 ) ; // Set the new hooks argument $ this -> arguments -> setOpt ( 'hooks' , array ( $ trigger => array ( $ hook ) ) ) ; // Redirect back to the basic configuration set method App :: get ( 'client' ) -> call ( 'configuration' , 'set' , $ this -> arguments , $ this -> output ) ; }
Adds a new console hook

@return  void
Adds a new console hook