Git Product home page Git Product logo

bundle-generator's Introduction

Pimcore Bundle Generator

This bundle provides a bundle generator for Pimcore to generate bundle skeletons and give you a head start for bundle development.

To generate bundle skeletons just install and activate this bundle, use one of the two commands provided and follow the instructions:

  • generate:bundle - to generate default symfony bundles
  • pimcore:generate:bundle - to generate Pimcore bundles

Installation

  1. On your Pimcore 11 root project
$ composer require pimcore/bundle-generator
  1. Make sure the bundle is enabled in the config/bundles.php file. The following lines should be added:
use Pimcore\Bundle\BundleGeneratorBundle\PimcoreBundleGeneratorBundle;

return [
    PimcoreBundleGeneratorBundle::class => ['all' => true],
];

Go to your terminal/command prompt, And you're ready to rock !

Contributions

As Pimcore Bundle Generator is a community project, any contributions highly appreciated. For details see our Contributing guide.

bundle-generator's People

Contributors

aryaantony92 avatar bluvulture avatar brusch avatar dvesh3 avatar fashxp avatar kingjia90 avatar martineiber avatar wisconaut avatar yuliusardian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bundle-generator's Issues

[Bug]: Use preBuildMenu instead of pimcoreReady

Expected behavior

preBuildMenu should be used in the startup.js

Actual behavior

It still uses the old pimcoreReady function.

Steps to reproduce

Generate a new bundle and check the startup.js

Error with search_paths?

Hey,

I tried to create a bundle with this generator, however I always get an error message at the end saying the following:

The command was not able to configure everything automatically.
  You'll need to make the following changes manually.


- Edit the composer.json file and register the bundle
  namespace in the "autoload:psr-4" section :
  "Yourcompany\\ModuleTestBundle\\": "bundles/Yourcompany/ModuleTestBundle"
- Edit the application configuration and make sure
  you have added the bundles/Yourcompany/ModuleTestBundle to the Pimcore bundle search paths:
   pimcore:
      bundles:
         search_paths:
             - bundles/Yourcompany/ModuleTestBundle

The mentioned composer.json is the one in the project root I guess? So I added it there manually. However the second point is where I am stuck. Where exactly is my "application configuration"? Where do I have to add those lines?

I guess that is why my bundle doesn't show up when I use the console and type pimcore:bundle:list?

[Bug]:

Expected behavior

pimcore/bundle-generator to be installed with no errors

Actual behavior

[ERROR] Some errors occurred while installing assets.
Script Pimcore\Composer::installAssets handling the pimcore-scripts event terminated with an exception
In Composer.php line 136:
An error occurred when executing the "/usr/local/bin/php bin/console --ansi assets:install --ignore-maintenance-mode pu
blic" command:
Exit code: 1
Installing assets as hard copies.

Steps to reproduce

Install Pimcore Docker version as described here https://github.com/pimcore/skeleton?tab=readme-ov-file#docker

execute
composer require pimcore/bundle-generator
or directly
bin/console --ansi assets:install --ignore-maintenance-mode public

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.