TransmissionBundle
, (*1)
, (*2)
Installation
using Composer:, (*3)
{
"require": {
"chellem/transmission-bundle": "dev-master"
}
}
CONFIGURATION
Register the bundle:, (*4)
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Transmission\Bundle\TransmissionBundle\TransmissionBundle(),
);
// ...
}
Configuration in your config.yml:, (*5)
# app/config/config.yml
transmission: ~
By default:
host: 127.0.0.1
port: 9091
username: null
password: null, (*6)
Full Configuration:, (*7)
# app/config/config.yml
transmission:
host: localhost
port: 9091
username: null
password: null
Usage as service
// ...
$transmission = $this->container->get('transmission');
$torrents = $transmission->all();
$torrent = $transmission->get(1);
// ...
You can use any other methods available through transmission-php, (*8)