public function saveBook($book, $inputFormat, $outputFormat) { $this->security->checkLoggedIn(); // The book Controller will check if has permission depending on the bookId // Here we cannot see the book id.. its inside $book ! $bookController = new BookController(); // Do security checks and save the book return $bookController->saveBook($book, $inputFormat, $outputFormat); }