小编Bou*_*ffe的帖子

错误:“内核”服务是合成的,需要在启动时设置才能使用

在我们的生产网站中,我发现了 Sentry.io 的错误。

几个月以来,我每天都会遇到大约 50 次相同的错误,但我自己永远无法在本地、预生产甚至生产中重现它。

我不知道什么会抛出这个。我从未有客户向我报告过此错误。

有谁知道它可能是什么?

ErrorException: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The "kernel" service is synthetic, it needs to be set at boot time before it can be used. in /mnt/www/project/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:334
Stack trace:
#0 /mnt/www/project/app/cache/prod/Container2xhx4bk/appProdProjectContainer.php(11988): Symfony\Component\DependencyInjection\Container->get('kernel')
#1 /mnt/www/project/app/cache/prod/Container2xhx4bk/appProdProjectContainer.php(12085): Container2xhx4bk\appProdProjectContainer->getTemplating_LocatorService()
#2 /mnt/www/project/app/cache/prod/Container2xhx4bk/appProdProjectContainer.php(9670): Container2xhx4bk\appProdProjectContainer->getTwig_LoaderService()
#3 /mnt/www/project/app/cache/prod/Container2xhx4bk/appProdProjectContainer.php(9660): Container2xhx4bk\appProdProjectContainer->getTwigService()
#4 /mnt/www/project/ap
#1 vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php(334): handleFatalError
Run Code Online (Sandbox Code Playgroud)

symfony

7
推荐指数
1
解决办法
5732
查看次数

关联数组对齐 => 与 PHP-CS-Fixer

关联数组 => 应该与 PHP-CS-Fixer 对齐吗?

$array = [
    1    => 'a',
    '1'  => 'b',
    1.5  => 'c',
    true => 'd',
];
Run Code Online (Sandbox Code Playgroud)

或者

$array = [
    1 => 'a',
    '1' => 'b',
    1.5 => 'c',
    true => 'd',
];
Run Code Online (Sandbox Code Playgroud)

我没有在https://github.com/FriendsOfPHP/PHP-CS-Fixer 中找到过滤器

php phpcs

5
推荐指数
2
解决办法
3401
查看次数

用长字包裹表格单元格

我尝试按照这里的解释:如何将表格单元格包装在全宽度表格中的最大宽度

但我不能做一些工作来包装我的"xxxxxxxxxxxxx"线.

<table class="my-list table table-bordered table-hover">
    <tbody>
        <tr>
            <th>User id</th>
            <th>User name</th>
            <th>Type</th>
            <th>Id</th>
            <th>Ad content</th>
            <th>Created at</th>
        </tr>
        <tr>
            <td>66666</td>
            <td>John Smith</td>
            <td>type1</td>
            <td>99999</td>
            <td>
                <div>
                    Good content with words and real sentences.
                </div>
            </td>
            <td>2015-09-02</td>
        </tr>
        <tr>
            <td>777777</td>
            <td>Martin  Isabelle</td>
            <td>type2</td>
            <td>888888</td>
            <td>
                <div>
                    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
                </div>
            </td>
            <td>2015-09-02</td>
        </tr>
    </tbody>
</table>
Run Code Online (Sandbox Code Playgroud)

https://jsfiddle.net/jfmqgh20/2/

html css

2
推荐指数
1
解决办法
3299
查看次数

标签 统计

css ×1

html ×1

php ×1

phpcs ×1

symfony ×1