Skip to content

Commit

Permalink
Add @ds() #486
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Dec 1, 2018
1 parent 691e4c9 commit 63ed491
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/Core/Renderer/Edge/WindwalkerExtension.php
Expand Up @@ -63,6 +63,7 @@ public function getDirectives()
// Debug
'shown' => [$this, 'shown'],
'dd' => [$this, 'dd'],
'ds' => [$this, 'ds'],
'die' => [$this, 'dead'],
'debug' => [$this, 'debug'],
'enddebug' => [$this, 'endauth'],
Expand Down Expand Up @@ -98,7 +99,7 @@ public function getParsers()
*/
public function translate($expression)
{
return "<?php echo \$translator->translate{$expression} ?>";
return "<?php echo __{$expression} ?>";
}

/**
Expand Down Expand Up @@ -305,6 +306,20 @@ public function dd($expression)
return "<?php show{$expression}; die; ?>";
}

/**
* ds
*
* @param string $expression
*
* @return string
*
* @since 3.4.8
*/
public function ds($expression)
{
return "<?php ds{$expression}; ?>";
}

/**
* dead
*
Expand Down

0 comments on commit 63ed491

Please sign in to comment.