- URL 하드코딩 → .env APP_URL 기반 동적 URL로 변경 - DB 연결 하드코딩 → .env 기반으로 변경 - MySQL strict mode DATE 오류 수정
35 lines
647 B
PHP
35 lines
647 B
PHP
<?php
|
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
/**
|
|
* hold PhpMyAdmin\Twig\TableExtension class
|
|
*
|
|
* @package PhpMyAdmin\Twig
|
|
*/
|
|
namespace PhpMyAdmin\Twig;
|
|
|
|
use Twig\Extension\AbstractExtension;
|
|
use Twig\TwigFunction;
|
|
|
|
/**
|
|
* Class TableExtension
|
|
*
|
|
* @package PhpMyAdmin\Twig
|
|
*/
|
|
class TableExtension extends AbstractExtension
|
|
{
|
|
/**
|
|
* Returns a list of functions to add to the existing list.
|
|
*
|
|
* @return TwigFunction[]
|
|
*/
|
|
public function getFunctions()
|
|
{
|
|
return array(
|
|
new TwigFunction(
|
|
'Table_get',
|
|
'PhpMyAdmin\Table::get'
|
|
),
|
|
);
|
|
}
|
|
}
|