Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

PEAR_Exception Class Not found #68

Closed
farrelley opened this issue Jan 21, 2013 · 10 comments
Closed

PEAR_Exception Class Not found #68

farrelley opened this issue Jan 21, 2013 · 10 comments

Comments

@farrelley
Copy link

The PEAR_Exception class is not found. It need to be added to the composer file somehow. It's extended through Console_CommandLine_Exception

PEAR_Exception GitHub repo is https://github.com/pear/PEAR_Exception/

Will issue PR if I can figure out how to get this in.

@farazdagi
Copy link
Collaborator

Yep, indeed. Will also meditate on what is the best way to include it :)

PR is always welcome!

@farrelley
Copy link
Author

One way is to just get Exception stuff from github with package type zip.

{
            "type": "package",
            "package": {
                "name": "pear/Pear_Exception",
                "version": "dev-master",
                "dist": {
                    "url": "https://github.com/pear/PEAR_Exception/archive/master.zip",
                    "type": "zip"
                }
            }
        }

then Include require:

"pear/Pear_Exception": "dev-master"

All it needs to do is to be autoloaded correctly.

@farazdagi
Copy link
Collaborator

Seems quite a good solution to me. Pls, feel free to file the pull request.

@Pawka
Copy link
Owner

Pawka commented Jan 23, 2013

It is Console_CommandLine bug. I'm currently fixing phrozn-related pear repositories and it will be enough just to have Console_CommandLine in Phrozn/composer.json. Not sure how long it will take until they'll accept all my PRs.

@farazdagi This would be temporary fix. I would suggest to wait until PEAR repos will be fixed and do not include this PR.

@farrelley
Copy link
Author

@Pawka That's probably the best way to fix this.

@farazdagi
Copy link
Collaborator

@Pawka @farrelley Agreed, let's wait and see when PEAR component is fixed.

@fgrehm
Copy link

fgrehm commented Jan 23, 2013

hey @farrelley, would you mind pasting your composer.json down here? wasn't able to get it working
I really wanted to try out phrozn but it's been I while since I last used PHP and composer is brand new to me :p

tks!

@farrelley
Copy link
Author

@fgrehm - #68 (comment) I just added that. Just need to add in the autoloading to psr-0 section. That's the work around.

@fgrehm
Copy link

fgrehm commented Jan 23, 2013

@farralley tks for the answer but I wasn't able to get it working
here's what I tried:
https://gist.github.com/8f7c995b344a339dc250

@Pawka
Copy link
Owner

Pawka commented Jan 23, 2013

@fgrehm Add "pear/Pear_Exception": "dev-master" part to required instead of autoload.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants