post = $post; $this->query = $hooks->wrap($query); $this->command = $hooks->wrap($command); } public function execute( $id ) { $model = $this->query->findById( $id ); $this->command->delete( $model ); // $to = '-referrer-'; $to = $this->post->get( 'back' ); if( $to ){ $to = json_decode( $to, TRUE ); } else { $to = array( 'schedule', array() ); } $return = array( $to, '__Shift Deleted__' ); return $return; } }