Permalink
Browse files

add soft warning for missing IronCore class

  • Loading branch information...
1 parent 59b65da commit bdcf7ebc0288cd4815e19d4940fcbe23f2074e9d @thousandsofthem thousandsofthem committed Aug 28, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 IronMQ.class.php
View
@@ -12,7 +12,12 @@
*/
-class IronMQ_Exception extends Exception{
+if (!class_exists('IronCore')) {
+ echo "Please include IronCore class first\n";
@ghost

ghost Aug 29, 2013

That message will always be printed if installing with Composer. Is there another way to do this?

@thousandsofthem

thousandsofthem Aug 29, 2013

Contributor

I'm sure it is. At this moment I still don't know why composer trying to load this class without his dependencies.
@archfizz could you say is current solution work for you?
I could just suppress any output in case of composer environment
Steps-to-reproduce 'd be helpful as well - never saw this error by myself

@pushpak

pushpak Sep 1, 2013

i also happened to face the same issue on my production server today, using laravel 4 and i had to dump the vendor directory and composer cache and do composer install to fix it.

+ return;
+}
+
+class IronMQ_Exception extends Exception {
}

0 comments on commit bdcf7eb

Please sign in to comment.