phlexible/google-maps-bundle

phlexible google maps bundle

安装: 85

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

公开问题: 0

语言:JavaScript

类型:symfony-bundle

1.1.0 2017-01-27 13:47 UTC

This package is auto-updated.

Last update: 2024-09-08 06:37:14 UTC


README

PhlexibleGoogleMapsBundle 为 phlexible 添加了基于国家的内容支持。

安装

  1. 使用 composer 下载 PhlexibleGoogleMapsBundle
  2. 启用 Bundle
  3. 清除 symfony 缓存

步骤 1:使用 composer 下载 PhlexibleGoogleMapsBundle

运行以下命令添加 PhlexibleGoogleMapsBundle

$ php composer.phar require phlexible/google-maps-bundle "~1.0.0"

Composer 会将 bundle 安装到项目的 vendor/phlexible 目录。

步骤 2:启用 Bundle

在 kernel 中启用 Bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Phlexible\Bundle\GoogleMapsBundle\PhlexibleGoogleMapsBundle(),
    );
}

步骤 3:清除 symfony 缓存

如果您的 phlexible 应用程序运行在环境 prod,请清除缓存

$ php app/console cache:clear --env=prod