Skip to content

Commit

Permalink
cake 5 upgrade - implement pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bgehrels committed Sep 18, 2023
1 parent ac96c8a commit fe876b6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 0 additions & 4 deletions config/bootstrap.php

This file was deleted.

1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="./tests/bootstrap.php" colors="true" processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage/>
<testsuites>
<testsuite name="CakePdf Plugin Tests">
<directory>./tests/TestCase</directory>
Expand Down
9 changes: 8 additions & 1 deletion src/Plugin.php → src/CakePdfPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@

use Cake\Core\BasePlugin;

class Plugin extends BasePlugin
class CakePdfPlugin extends BasePlugin
{
/**
* Do bootstrap or not
*
* @var bool
*/
protected bool $bootstrapEnabled = false;

/**
* Load routes or not
*
Expand Down
6 changes: 3 additions & 3 deletions src/View/PdfView.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ class PdfView extends View
/**
* Constructor
*
* @param ?\Cake\Http\ServerRequest $request Request instance.
* @param ?\Cake\Http\Response $response Response instance.
* @param ?\Cake\Event\EventManager $eventManager Event manager instance.
* @param \Cake\Http\ServerRequest|null $request Request instance.
* @param \Cake\Http\Response|null $response Response instance.
* @param \Cake\Event\EventManager|null $eventManager Event manager instance.
* @param array $viewOptions View options. See View::$_passedVars for list of
* options which get set as class properties.
* @throws \Cake\Core\Exception\CakeException
Expand Down

0 comments on commit fe876b6

Please sign in to comment.