Skip to content

Commit a0f1ee4

Browse files
authored
Merge pull request magento-hackathon#9 from kkrieger85/master
Make installable with composer
2 parents 9190f86 + 7b5a23b commit a0f1ee4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+81
-10225
lines changed

README.md

+18-7
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,24 @@ If you're not using composer to manage non-magento 3rd party packages, then you
1010
3. Configure the module (see below).
1111

1212
## Installtion With Composer
13-
For those of you that want to keep 3rd party packages out of your repo, here are your instructions:
14-
1. Add `"sentry/sentry": "^1.6.0"` to your `composer.json` in the `require` section.
15-
2. Run `composer update` to update libraries.
16-
3. Pull down the code somewhere (`git clone [email protected]:magento-hackathon/LoggerSentry.git`)
17-
4. Copy over all files associatively.
18-
5. Delete `lib/` from the LoggerSentry folder (or wherever you just pulled down the code)
19-
6. Configure the module (see below).
13+
Add to your repositories:
14+
15+
```
16+
"repositories": [
17+
{
18+
"type": "composer",
19+
"url": "http://packages.firegento.com"
20+
}
21+
],
22+
```
23+
24+
Install with composer:
25+
26+
`composer require magento-hackathon/loggersentry`
27+
28+
Additional requirements:
29+
30+
[firegento/logger](https://github.com/firegento/firegento-logger)
2031

2132
## Configuration
2233

app/code/community/Hackathon/LoggerSentry/Model/Sentry.php

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22

3-
set_include_path(get_include_path() . PATH_SEPARATOR . realpath(Mage::getBaseDir() .DS.'lib'.DS.'sentry'.DS.'raven'.DS.'lib'));
4-
53
class Hackathon_LoggerSentry_Model_Sentry extends Zend_Log_Writer_Abstract
64
{
75
/**

composer.json

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"name": "magento-hackathon/loggersentry",
3+
"license": [
4+
"GPL-3.0"
5+
],
6+
"type": "magento-module",
7+
"description": "Extension for Firegento Logger module to log to Sentry Service, too.",
8+
"repositories": [
9+
{
10+
"type": "vcs",
11+
"url": "https://github.com/magento-hackathon/magento-composer-installer"
12+
},
13+
{
14+
"type": "composer",
15+
"url": "https://packages.firegento.com"
16+
}
17+
],
18+
"require": {
19+
"magento-hackathon/magento-composer-installer": "*",
20+
"firegento/logger": "1.*",
21+
"sentry/sentry": "*"
22+
},
23+
"extra": {
24+
"magento-root-dir": "./",
25+
"magento-deploystrategy": "link",
26+
"map": [
27+
[
28+
"./app/code/community/Hackathon/LoggerSentry",
29+
"./app/code/community/Hackathon/LoggerSentry"
30+
],
31+
[
32+
"./app/etc/modules/Hackathon_LoggerSentry.xml",
33+
"./app/etc/modules/Hackathon_LoggerSentry.xml"
34+
]
35+
]
36+
},
37+
"authors": [
38+
{
39+
"name": "Schrank",
40+
"email": "",
41+
"homepage": "https://github.com/Schrank",
42+
"role": "Developer"
43+
},
44+
{
45+
"name": "Jay El-Kaake",
46+
"email": "",
47+
"homepage": "https://github.com/jayelkaake",
48+
"role": "Developer"
49+
},
50+
{
51+
"name": "Sylvain Rayé",
52+
"email": "",
53+
"homepage": "https://github.com/diglin",
54+
"role": "Developer"
55+
},
56+
{
57+
"name": "Kevin Krieger",
58+
"email": "[email protected]",
59+
"homepage": "https://kkrieger.de",
60+
"role": "Developer"
61+
}
62+
]
63+
}

lib/sentry/raven/.gitignore

-6
This file was deleted.

lib/sentry/raven/.gitmodules

-3
This file was deleted.

lib/sentry/raven/.php_cs

-12
This file was deleted.

lib/sentry/raven/.travis.yml

-30
This file was deleted.

lib/sentry/raven/AUTHORS

-4
This file was deleted.

lib/sentry/raven/CHANGES

-52
This file was deleted.

lib/sentry/raven/LICENSE

-12
This file was deleted.

lib/sentry/raven/Makefile

-17
This file was deleted.

0 commit comments

Comments
 (0)