1

In the RC candidates and the CE available via GitHud app/code/magento pool is included. In the distro from magento's website the pool is missing, where is the pool stored? I ask because I am getting messages saying that the Massgenerator does not exist:

a:4:{i:0;s:72:"Class Magento\Salesrule\Model\Coupon\MassgeneratorFactory does not exist";i:1;s:13600:"#0 /chroot/home/html/mag2a/vendor/magento/framework/ObjectManager/Definition/Runtime.php(44):

However the exact same code run on the CE distro containing the code/magento pool handles the code just fine.

asked Nov 21, 2015 at 14:39
2
  • Take a look at magento.stackexchange.com/questions/91012/… ... did you run bin/magento setup:upgrade -q && bin/magento cache:flush -q in magento root dir? Commented Nov 21, 2015 at 14:51
  • Yes and the file is in place inside the vendor/magento folder Commented Nov 21, 2015 at 16:16

2 Answers 2

3

there are two approaches of installing Magento:
1. from Git repository. Then all modules are in app/code, so contributors can work with them as a regular GitHub repo
2. via Composer. Then all core modules will be in vendor and custom modules can be created under app/code and stored under project's Git repository. The zip archive is based on this approach, just everything is already downloaded and packed in one zip
Source for the files is the same.

https://github.com/magento/magento2/issues/2401#issuecomment-157894163

answered Nov 21, 2015 at 14:51
1
  • The class existed inside the vendor/magento folder. I ended up having to make my own model using the Massgenerator and then call that. I'm not sure why I couldn't create the factory based on the core magento class. Commented Nov 21, 2015 at 16:19
1

In Magento 2 RC/CE, it only have class Magento\SalesRule\Model\Coupon\Massgenerator, can you declare it your custom module. You should disable your module and run bin/magento setup:upgrade in location directory install magento2

answered Nov 21, 2015 at 14:54

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.