Skip to content

Commit

Permalink
Improve code documentation for Template
Browse files Browse the repository at this point in the history
  • Loading branch information
rougin committed Dec 10, 2023
1 parent c3eec72 commit ef7e6c1
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/Middleware/Doublepass.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*
* @package Slytherin
* @author Rougin Gutib <rougingutib@gmail.com>
* @codeCoverageIgnore
*/
class Doublepass implements HandlerInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Template/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace Rougin\Slytherin\Template;

/**
* Renderer
* Twig Renderer
*
* NOTE: To be removed in v1.0.0. Use "TwigRenderer" instead.
* NOTE: To be removed in v1.0.0. Use "Twig\Renderer" instead.
*
* @package Slytherin
* @author Rougin Gutib <rougingutib@gmail.com>
*/
class Twig extends TwigRenderer
class Twig extends Twig\Renderer
{
}
4 changes: 2 additions & 2 deletions src/Template/Twig/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use Rougin\Slytherin\Template\TwigRenderer;

/**
* Renderer
* Twig Renderer
*
* NOTE: To be removed in v1.0.0. Use "Template\TwigRenderer" instead.
* NOTE: To be removed in v1.0.0. Use "TwigRenderer" instead.
*
* @package Slytherin
* @author Rougin Gutib <rougingutib@gmail.com>
Expand Down
6 changes: 5 additions & 1 deletion src/Template/TwigLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
/**
* Twig Loader
*
* Backward compatibility for the Twig package.
* A backward compatibility class for the Twig package.
*
* @package Slytherin
* @author Rougin Gutib <rougingutib@gmail.com>
*/
class TwigLoader
{
/**
* Check if any version of Twig is installed.
*
* @return boolean
*/
public function exists()
Expand All @@ -21,6 +23,8 @@ public function exists()
}

/**
* Loads the Twig instance.
*
* @param string|string[] $path
* @return \Twig\Environment
*/
Expand Down
7 changes: 3 additions & 4 deletions src/Template/Vanilla/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@

namespace Rougin\Slytherin\Template\Vanilla;

use Rougin\Slytherin\Template\VanillaRenderer;
use Rougin\Slytherin\Template\Renderer as Slytherin;

/**
* Renderer
*
* A simple implementation of a template renderer.
* NOTE: To be removed in v1.0.0. Use "Template\Renderer" instead.
* NOTE: To be removed in v1.0.0. Use "Renderer" instead.
*
* @package Slytherin
* @author Rougin Gutib <rougingutib@gmail.com>
*/
class Renderer extends VanillaRenderer
class Renderer extends Slytherin
{
}
5 changes: 2 additions & 3 deletions src/Template/VanillaRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
/**
* Renderer
*
* A simple implementation of a template renderer.
* NOTE: To be removed in v1.0.0. Use "Template\Renderer" instead.
* NOTE: To be removed in v1.0.0. Use "Vanilla\Renderer" instead.
*
* @package Slytherin
* @author Rougin Gutib <rougingutib@gmail.com>
*/
class VanillaRenderer extends Renderer
class VanillaRenderer extends Vanilla\Renderer
{
}

0 comments on commit ef7e6c1

Please sign in to comment.