staglag13/wom-test-bundle

PHP 开发者招聘测试

安装: 21

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 0

公开问题: 0

类型:symfony-bundle

1.0.0 2014-12-30 17:03 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:23:28 UTC


README

安装

将包添加到 composer.json

"require": {
    ...
    "staglag13/wom-test-bundle": "*"
},

通过 composer 更新

$ composer update staglag13/wom-test-bundle

在 app/AppKernel.php 中注册包

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Staglag13\WomTestBundle\Staglag13WomTestBundle(),
        );

        ...
    }
}
```
    
Add routing to app/config/routing.yml
    
```yaml
staglag13_wom_test:
    resource: "@Staglag13WomTestBundle/Resources/config/routing.yml"
    prefix:   /
```

<h3>Run</h3>

<h5>Webbrowser</h5>

Start Demo in Browser with URL: 
    
    https://:8000/app_dev.php/musicmoz

<h5>Command</h5>

Run Demo via shell execute: 

    php app/console musicmoz:run

<h3>Testing</h3>

Start the PHPUnit Test via shell command:

    phpunit -c app/ vendor/staglag13/wom-test-bundle/Staglag13/WomTestBundle/