https://github.com/flochtililoch/drupalbundle
Symfony2 bundle providing access to Drupal API
https://github.com/flochtililoch/drupalbundle
Last synced: about 1 month ago
JSON representation
Symfony2 bundle providing access to Drupal API
- Host: GitHub
- URL: https://github.com/flochtililoch/drupalbundle
- Owner: flochtililoch
- Created: 2012-02-28T10:28:45.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-02-28T11:00:54.000Z (over 13 years ago)
- Last Synced: 2025-03-14T00:42:33.534Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 91.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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