Skip to content

Symfony standard edition with Clarity bundles as submodules for fast development

License

Notifications You must be signed in to change notification settings

clarity-project/ClarityDevProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Standard Edition + Clarity Bundles

Project contain Clarity bundles as submodules for fast development

List of included Clarity bundles:

Commands to get started with this project:

git clone git@github.com:clarity-project/ClarityDevProject.git

git submodule init

git submodule update

After that in src/Clarity directory you will see bundles listed above.

How to add another Clarity bundle to this project?

git submodule add git@github.com:clarity-project/ClarityCdnBundle.git src/Clarity/CdnBundle

Note: please dont use Clarity prefix in bundle final directory name!

After that add bundle namespace to composer.json as below:

    "autoload": {
        "psr-4": { 
            ...
            "Clarity\\CdnBundle\\": "src/Clarity/CdnBundle/"
        }
    },

Now you need to regenerate composer namespaces:

composer dump-autoload

Register new symfony bundle with new line in AppKernel.php

    // ...
    new Clarity\CdnBundle\ClarityCdnBundle(),
    // ...

That's all! Don forget configure bundle if needed in config.yml

About

Symfony standard edition with Clarity bundles as submodules for fast development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published