Connect with us

WEB SOLUTIONS DONE

how to install 3rd party bundle in symfony

symfony

how to install 3rd party bundle in symfony

 

 

 

 

 

 

 

How to install 3rd party bundle in symfony

Follow these easy steps to install 3rd party bundle

step no 1:

Add it to the “composer.json“ file:

 

{
…,
“require”: {
…,
“SwiftCodeBundle/My-bundle”: “2.0.*@dev”
}
}

step no 2 :

Update the dependency:
1 $ php composer.phar update SwiftCodeBundle/My-bundle
or update all dependencies
1 $ php composer.phar update

Or we can install it by this way

This can be done by command prompt :
1 $ php composer.phar require SwiftCodeBundle/My-bundle:2.0.*@dev

Step no 3:

/ app/AppKernel.php
// …
class AppKernel extends Kernel
{
// …
public function registerBundles()
{
$bundles = array(
// …,

new SwiftCodeBundle\My-bundle(),
);
// …
}
}

step no 4:

$ app/console config:dump-reference assetic

The output will look like this:
assetic:
debug: %kernel.debug%
use_controller:
enabled: %kernel.debug%
profiler: false
read_from: %kernel.root_dir%/../web
write_to: %assetic.read_from%
java: /usr/bin/java
node: /usr/local/bin/node
node_paths: []
# …

or

$ app/console config:dump-reference AsseticBundle

Now if anything is left , we can check it by reading md file.

Continue Reading
You may also like...

More in symfony

Advertisement




To Top