alisakopric / user_url_shortener
仅为 UserBundle 的测试模块。
dev-master
2016-08-31 12:51 UTC
This package is not auto-updated.
Last update: 2024-09-14 19:31:18 UTC
README
注意: 此项目正在经历许多变化
安装
安装是一个快速5步过程
- 克隆仓库
- 使用 composer 下载 UserBundle
- 启用 Bundle
- 配置您的应用程序
- 创建应用程序数据库
1. 克隆仓库
创建新的项目目录并在其中执行 git clone 命令
git clone https://alisa_kopric@bitbucket.org/sightsdigitalteam/url_shortener.git
2. 使用 composer 下载 UserBundle
只需执行以下命令
composer update
安装脚本所需的信息
- 数据库主机
- 数据库端口
- 数据库名称
- 数据库用户名
- 数据库密码
- 邮件传输
- 邮件主机
- 邮件用户名
- 邮件密码
- 密钥
3. 启用 UserBundle 模块
在 AppKernel.php 中注册该 Bundle
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new UserBundle\UserBundle(), ); }
4. 配置您的应用程序
在您的 config.yml 中配置:-> 取消注释资源行
app/config/config.yml
imports:
# - { resource: "@UserBundle/Resources/config/services.yml" }
在您的 routing.yml 中配置:-> 取消注释行
app/config/routing.yml
#user: # resource: "@UserBundle/Controller/" # type: annotation # prefix: /
5. 创建应用程序数据库
准备您的数据库
此实现负责构建数据库和创建您的模式。
php bin/console doctrine:database:create php bin/console doctrine:schema:update --force