alexandermatveev/raven-bundle

Raven.js Bundle for Symfony2

安装数量: 3,102

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

语言:JavaScript

类型:symfony-bundle

1.1 2016-11-14 12:32 UTC

This package is auto-updated.

Last update: 2024-09-09 21:21:35 UTC


README

当前版本

Raven.js 3.7.0

安装

将包添加到您的 composer.json 文件中

// composer.json

{
    "require": {
		// ...
        "alexandermatveev/raven-bundle": "*"
    }
}

将包添加到您的应用程序内核

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new AlexanderMatveev\RavenBundle\AlexanderMatveevRavenBundle(),
        // ...
    );
}

使用 Composer 下载包

$ php composer.phar update alexandermatveev/raven-bundle

安装资源

假设您的服务器公共目录名为 "web",安装公共供应商资源

$ bin/console assets:install web

可选,使用 --symlink 属性创建链接而不是资源的副本

$ bin/console assets:install --symlink web

使用方法

在您的 HTML 模板中引用所需文件,例如

<script type="text/javascript" src="{{ asset('bundles/alexandermatveevraven/raven.min.js') }}"></script>

许可证

请参阅包含文件的源代码以获取许可证信息

参考

  1. https://github.com/getsentry/raven-js