Created
February 4, 2015 17:39
-
-
Save Sequoia/8252e4df92ecba04d2ce to your computer and use it in GitHub Desktop.
Setting up PSR-4 module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// autoload_psr4.php @generated by Composer | |
$vendorDir = dirname(dirname(__FILE__)); | |
$baseDir = dirname($vendorDir); | |
return array( | |
/*...*/ | |
'Behat\\Mink\\Driver\\' => array($vendorDir . '/behat/mink-browserkit-driver/src', $vendorDir . '/behat/mink-goutte-driver/src', $vendorDir . '/behat/mink-selenium2-driver/src'), | |
'Behat\\Mink\\' => array($vendorDir . '/behat/mink/src'), | |
'MyNamespace\\Traits\\' => array($vendorDir . '/my-namespace/amazon-traits/src'), | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my-namespace/amazon-traits", | |
"description": "Traits for s3 etc.", | |
"require": { | |
"php": ">=5.4.0", | |
"aws/aws-sdk-php": "2.*" | |
}, | |
"autoload": { | |
"psr-4": { | |
"MyNamespace\\Traits\\": "src/" | |
} | |
}, | |
"minimum-stability": "stable" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ pwd | |
/path/to/parent-project/vendor/my-namespace/amazon-traits | |
➜ tree | |
. | |
├── composer.json | |
├── README.md | |
└── src | |
└── AmazonTraits.php | |
1 directory, 3 files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "my-namespace/isicheckerservice", | |
"require": { | |
"behat/mink-goutte-driver": "*", | |
"behat/mink-selenium2-driver": "*", | |
"my-namespace/amazon-traits": "dev-master", | |
}, | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "[email protected]:my-namespace/amazon-traits.git" | |
} | |
], | |
"minimum-stability": "dev" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment