2017 © Pedro Peláez
 

library live-reload-bundle

Automatically include the live reload script in Symfony

image

bravesheep/live-reload-bundle

Automatically include the live reload script in Symfony

  • Wednesday, December 6, 2017
  • by rnijveld
  • Repository
  • 2 Watchers
  • 2 Stars
  • 2,587 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 18 % Grown

The README.md

BravesheepLiveReloadBundle

A Symfony bundle that automatically includes a link to the livereload script in any html response (based on configuration)., (*1)

Inspired by the KunstmaanLiveReloadBundle., (*2)

Installation and configuration

Using Composer add the bundle to your dependencies using the require command. This command adds the bundle only for development purposes:, (*3)

composer require --dev bravesheep/live-reload-bundle

Add the bundle to your AppKernel

Add the bundle in your app/AppKernel.php. To add it to just your development bundles:, (*4)

public function registerBundles()
{
    // ...

    if (in_array($this->getEnvironment(), ['dev', 'test'])) {
        // ...
        $bundles[] = new Bravesheep\LiveReloadBundle\BravesheepLiveReloadBundle();
    }
    // ...
}

Configure the bundle

The bundly does not need any configuration and should work right away. However you can customize some settings, you can adjust the default configuration as shown below:, (*5)

bravesheep_live_reload:
    enabled: yes
    host: ~
    port: 35729

You may want to parameterize the enabled flag to allow individual developers to pick whether or not to enable livereload:, (*6)

bravesheep_live_reload:
    enabled: %livereload%

And in your app/config/parameters.yml:, (*7)

parameters:
    livereload: yes

The Versions

06/12 2017

dev-master

9999999-dev

Automatically include the live reload script in Symfony

  Sources   Download

MIT

The Requires

 

by Ruben Nijveld

21/06 2016

v0.1.0

0.1.0.0

Automatically include the live reload script in Symfony

  Sources   Download

MIT

The Requires

 

by Ruben Nijveld