ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 11 replies, has 2 voices, and was last updated by  ballisticpain 1 year, 7 months ago.

  • Creator
    Topic
  • #17303

    ballisticpain
    Participant

    So I’m trying to add customizations to my CRM installation… Currently trying to notify when I get a lead created via an incoming call through Twilio. I want to send a text message when done. Fortunately I can do all the call handling via TwiML, but for sending messages it does seem that I need to use the Twilio API. There’s a Symfony Bundle that wraps the API into services… https://github.com/fridolin-koch/VreshTwilioBundle

    My problem is that when I do a

    it adds the proper information to the composer.json file, but it does not install anything.

    Looking deeper I notice that orocrm is running it’s own “packagist”, and this package is NOT one they are keeping in their repository of packages.

    How am I supposed to add third party bundles/libraries if they aren’t in the orocrm packagist repository?

    Thanks in advance!
    Jarvis

Viewing 11 replies - 1 through 11 (of 11 total)
  • Author
    Replies
  • #17304

    ballisticpain
    Participant

    I do see that I could manually specify the particular details and have it download the repository, but I feel this should not be the case. Am I mistaken or doing something wrong?

    Here’s where it explains how I could manually add the “package”: https://getcomposer.org/doc/05-repositories.md#packagist

    All the best,
    Jarvis

    #17308
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

    Hello, Jarvis.

    I’ve tried to use specified command and I’ve managed to install this package successfully:

    Now you just need to enable this bundle via bundles.yml file (e.g. in your custom bundle).

    orocrm is running it’s own “packagist”, and this package is NOT one they are keeping in their repository of packages.

    Correct, but this is just an additional repository used to search packages, so basic packagist is used to find all other packages too.

    If you can explain how to reproduce this issue – we will be happy to help you and find a solution.

    #17317

    ballisticpain
    Participant

    @Yehven,

    I will try again, and report back. After further reading I assumed it was supposed to also check packagist… It does turn out I do need it. I can’t use TwiML to send messages without first receiving one.

    Thanks!
    Jarvis

    #17318

    ballisticpain
    Participant

    Ah… (I stayed up all night so I failed to report the issue fully)

    (First off my composer is a bit out of date so going to update that…)

    Second I get…
    [RuntimeException]
    The lock file does not contain require-dev information, run install with the –no-dev option or run update to install those packages.

    It’s the Exception that’s stopping me… though running a composer install –no-dev afterwards doesn’t do anything even though I can verify the library is added to my composer.json.

    Thoughts?

    Thanks!
    Jarvis

    #17319

    ballisticpain
    Participant

    Wow … I just ran a install –no-dev AFTER doing the self update. It uninstalled the new stuff and re-installed older stuff. Guess I need to do an update locally and commit a new lock file.

    Thoughts?
    Jarvis

    #17320

    ballisticpain
    Participant

    All is well… thanks!

    How do I mark as resolved?

    All the best,
    Jarvis

    #17321

    ballisticpain
    Participant

    I have re-opened this issue as I’m having trouble working on my Slack integration.

    When I did this:
    composer require cleentfaar/slack ~0.14

    I get an error:

    I have proceeded to attempt to update the jms/serializer and jms/serializer-bundle dependencies but both of those fail with similar errors.

    Not sure how to proceed.

    Thanks,
    Jarvis

    #17324
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

    You have to choose one of these versions and handle version conflicts. How to do that – up to you to decide because cleentfaar/slack does not included into OroCRM package. I’d suggest to use higher version because usually highest version includes functionality from the older version.

    #17333

    ballisticpain
    Participant

    Yevhen,

    As I stated above I attempted to update those specific libraries, but I get more errors about versions…

    Here’s what I ran:
    composer require jms/serializer

    Here’s what I get back from that:

    Here’s another attempt:
    composer require jms/serializer jms/serializer-bundle

    Here’s what I get back from that:

    Thoughts?

    Thanks,
    Jarvis

    #17334
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

    Unfortunately, you can’t handle this conflict just by adding new modules with required versions – you should remember about platform dependencies that have strict versions too (that’s why you have this issue).

    So, possible solution is either using of older version of cleentfaar/slack (e.g. 0.9.4), or fixing of dependency versions of OroPlatform. I’d like to warn you that if you’ll choose fixing of platform dependencies then application might become unstable because it wasn’t tested with higher versions of JMS serializer. We already have improvement to use higher version of JMS serializer, but I can’t tell you when it will be done.

    #17340

    ballisticpain
    Participant

    So I resolved by using alias’. I knew it was a locked in platform dependency… Here’s what I manually put into my composer.json (as I don’t know the command line equivalent).

    I’ll let you know if I experience any difficulties.

    Thanks for your continued assistance!

    All the best,
    Jarvis

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.