use BookStack\Entities\ExportService;
use BookStack\Entities\Repos\BookRepo;
-use BookStack\Exceptions\NotFoundException;
use Throwable;
class BookExportController extends Controller
{
- /**
- * @var BookRepo
- */
- protected $bookRepo;
- /**
- * @var ExportService
- */
+ protected $bookRepo;
protected $exportService;
/**
* BookExportController constructor.
- * @param BookRepo $bookRepo
- * @param ExportService $exportService
*/
public function __construct(BookRepo $bookRepo, ExportService $exportService)
{
/**
* Export a book as a PDF file.
- * @param string $bookSlug
- * @return mixed
- * @throws NotFoundException
* @throws Throwable
*/
public function pdf(string $bookSlug)
/**
* Export a book as a contained HTML file.
- * @param string $bookSlug
- * @return mixed
- * @throws NotFoundException
* @throws Throwable
*/
public function html(string $bookSlug)
/**
* Export a book as a plain text file.
- * @param $bookSlug
- * @return mixed
- * @throws NotFoundException
*/
public function plainText(string $bookSlug)
{