Skip to content

Commit

Permalink
Removing src/*Bundle in favor of the newer bundle-less organization
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Chalnot committed Nov 8, 2018
1 parent b2e0160 commit 8b5e2b6
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 28 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
CleverAge/EAVManager Starter Kit
================================

The main documentation is located here: [CleverAge/EAVManager](https://github.com/cleverage/eav-manager)

## Installation

You will need make and docker install on your machine.
You will need make, docker and docker-compose installed on your machine.

````bash
$ make install && make shell
Expand All @@ -27,9 +29,10 @@ $ sf eavmanager:create-user -a [email protected] -pMyPassw0rd

### Accessing the application

The Nginx server will answer to any domain so you can either go to [http://127.0.0.1]() or to any domain matching this IP.
The Nginx server will answer to any domain so you can either go to [http://127.0.0.1](http://127.0.0.1) or to any
domain matching this IP.

All the emails sent by the application are caught by mailcatcher: [http://127.0.0.1:1080]()
All the emails sent by the application are caught by mailcatcher: [http://127.0.0.1:1080](http://127.0.0.1:1080)

### Managing docker containers

Expand All @@ -50,4 +53,3 @@ $ make stop

All the configuration is in ````app/config````.

For more documentation, go to: [CleverAge/EAVManager](https://github.com/cleverage/eav-manager)
2 changes: 1 addition & 1 deletion app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function registerBundles()
$eavBundles = CleverAge\EAVManager\EAVKernelBundleLoader::getBundles();

$projectBundles = [
new ClientNamespace\EAVModelBundle\ClientNamespaceEAVModelBundle(),
// Add any additional project bundle here
];

$devBundles = [];
Expand Down
9 changes: 9 additions & 0 deletions app/config/application/doctrine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@ doctrine:
user: '%database_user%'
password: '%database_password%'
charset: UTF8
server_version: '5.7'

orm:
auto_generate_proxy_classes: '%kernel.debug%'
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true

mappings:
App:
type: annotation
is_bundle: false
dir: '%kernel.root_dir%/../src/App/Entity'
prefix: App\Entity
alias: App
4 changes: 2 additions & 2 deletions app/config/parameters/defaults.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
locale: en

sidus_data_class: ClientNamespace\EAVModelBundle\Entity\Data
sidus_value_class: ClientNamespace\EAVModelBundle\Entity\Value
sidus_data_class: App\Entity\Data
sidus_value_class: App\Entity\Value
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "project",
"autoload": {
"psr-4": {
"": "src/"
"App\\": "src/App"
},
"classmap": [
"app/AppKernel.php",
Expand Down Expand Up @@ -35,6 +35,8 @@
},
"require-dev": {
"roave/security-advisories": "dev-master",
"dealerdirect/phpcodesniffer-composer-installer": "0.4.*",
"escapestudios/symfony2-coding-standard": "3.4.*",
"sidus/doctrine-debug-bundle": "1.*",
"sensio/generator-bundle": "^3.0",
"symfony/phpunit-bridge": "^4.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace ClientNamespace\EAVModelBundle\Entity;
namespace App\Entity;

use CleverAge\EAVManager\EAVModelBundle\Entity\AbstractData;
use Doctrine\ORM\Mapping as ORM;

/**
* @ORM\Table(name="client_data", indexes={
* @ORM\Table(name="app_eav_data", indexes={
* @ORM\Index(name="family", columns={"family_code"}),
* @ORM\Index(name="updated_at", columns={"updated_at"}),
* @ORM\Index(name="created_at", columns={"created_at"})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

namespace ClientNamespace\EAVModelBundle\Entity;
namespace App\Entity;

use CleverAge\EAVManager\EAVModelBundle\Entity\AbstractValue;
use Doctrine\ORM\Mapping as ORM;

/**
* @ORM\Table(name="client_value", indexes={
* @ORM\Table(name="app_eav_value", indexes={
* @ORM\Index(name="attribute", columns={"attribute_code"}),
* @ORM\Index(name="string_search", columns={"attribute_code", "string_value"}),
* @ORM\Index(name="int_search", columns={"attribute_code", "integer_value"}),
Expand Down

This file was deleted.

0 comments on commit 8b5e2b6

Please sign in to comment.