try / catch
try {
$TRY$
} catch(\Throwable $exception) {
$CATCH$
}
<?php | |
namespace App\Admin\Translator; | |
use Sonata\AdminBundle\Translator\LabelTranslatorStrategyInterface; | |
class EntityTranslatorStrategy implements LabelTranslatorStrategyInterface | |
{ | |
/** | |
* @var string |
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use Symfony\Component\ExpressionLanguage\ExpressionFunction; | |
use Symfony\Component\ExpressionLanguage\ExpressionLanguage; | |
use Symfony\Component\ExpressionLanguage\Node\NameNode; | |
use Symfony\Component\ExpressionLanguage\Node\Node; | |
class Formula |