cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2 composer.json issue

Magento2 composer.json issue

Hello,

i had a question for using composer.json.

 

Example:

 

 

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

 

If i using that, it will install into:

 

/vendor/testauthor/testextension/

 

If i upload normal extension it will normally place into

/app/code/Testauthor/testextension

 

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

/vendor/testauthor/testextension/

 

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,
Sebastian