Showing results for 
Search instead for 
Did you mean: 

Magento2 composer.json issue

Magento2 composer.json issue


i had a question for using composer.json.





  "name": "testauthor/testextension",
  "description": "Test for Magento 2",
  "type": "magento2-module",
  "version": "",
  "license": [
  "require": {
    "php": "~5.5.0|~5.6.0|~7.0.0",
    "magento/magento-composer-installer": "*"
    "autoload": {
        "files": [
        "psr-4": {
            "Testauthor\\Testextension\\": ""


If i using that, it will install into:




If i upload normal extension it will normally place into



Now my question is, how I need chnage composer.json if i will store "app" content into



AND (!!)

I will also store some into pub/media/testauthor/?

I only know the possibility to store data from app folder into vendor folder. But I not know how i can also store some into pub/media/ folder.


Could somebody help?


Best regards,