Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flochtililoch/drupalbundle

Symfony2 bundle providing access to Drupal API
https://github.com/flochtililoch/drupalbundle

Last synced: about 5 hours ago
JSON representation

Symfony2 bundle providing access to Drupal API

Awesome Lists containing this project

README

        

Drupal Bundle
====================

Introduction
---------------------

Provides Drupal API within your Symfony2 project.

Requirements
---------------------

* [Drupal 6.22](https://github.com/drupal/drupal/tree/6.22 "Drupal 6.22 on Github") (not tested with later versions)

Installation
---------------------

### Download FlochDrupalBundle and add Drupal 6.22 to your vendors

Here are two different method to achieve this:

**Using the vendors script**

Add the following lines in your `deps` file:

```
[FlochDrupalBundle]
git=git://github.com/flochtililoch/DrupalBundle.git
target=bundles/Floch/DrupalBundle

[Drupal]
git=git://github.com/drupal/drupal.git
target=Drupal/Drupal
version=6.22
```

Now, run the vendors script to download the bundle alongside with Drupal:

``` bash
$ php bin/vendors install
```

**Using submodules**

If you prefer instead to use git submodules, then run the following:

``` bash
$ git submodule add git://github.com/flochtililoch/DrupalBundle.git vendor/bundles/Floch/DrupalBundle
$ git submodule add git://github.com/drupal/drupal.git vendor/Drupal/Drupal
$ git submodule update --init
$ cd vendor/Drupal/Drupal && git reset --hard 6.22
```

### Configure the Autoloader

Add the `Floch` namespace to your autoloader:

``` php
registerNamespaces(array(
// ...
'Floch' => __DIR__.'/../vendor/bundles',
));
```

### Enable the bundle

Finally, enable the bundle in the kernel:

``` php