What are the Slack Archives?

Itโ€™s a history of our time together in the Slack Community! Thereโ€™s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you wonโ€™t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello Everyone, I am creating a form to add new data but facing issue in it ,I have defined ContactD

Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

Hello Everyone, I am creating a form to add new data but facing issue in it ,I have defined ContactDataFormType.php in directory ContactData/Communication/Form/

Welcome!

It looks like you're new here. Sign in or register to get started.
ยซ1

Comments

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)

    It seems like something in your module tries to access the DependencyProvider and it is not there. I would first look for what tris to access and decide if you need this or not. if you need the DependencyProvider then I would create it

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)

    Can you please try to form one message before you press โ€œsubmitโ€ in slack? or use the thread function. with this it is also easier to follow the message flowโ€ฆ

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    yes please help me

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    indexAction in AddController

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)

    what is your CommunicationFactory look like?

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    communicationfactory

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)

    in any of your Factories (business, communication, persistence) is there anything trying to access dependencies? i.e. ->getProvidiedDependencies()

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    no

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    i have not used dependencies

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)

    you likely do somehow ๐Ÿ˜› can you share more about the exception trace? in your screenshot with the exception you can scroll down on the left side

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    ok

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)

    you have not scrolled down yet for that screenshot

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)

    bottom left of the picture

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)
  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)

    i think there is still something missing from the middle-part of that trace. can you share one screenshot without scrolling completely to the bottom?

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    ok

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet
  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)

    ok, so if you read carefully through the trace you will notice that getFormFactory() needs the dependencyprovider ๐Ÿ™‚

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    so which type of dependencies it need

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    and how i can add them in formfactory

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)
    edited March 2023

    so likely just an empty ContactDataDependencyProvider class (so it has already the helper functions available)

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    yes i have the ContactDatadependencyProvider.php file but it empty

  • Posts: 38 ๐Ÿง‘๐Ÿปโ€๐Ÿš€ - Cadet

    what kind of functions i should write here and how

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)

    i think no need to add extra functions. just the class which extends from the right AbstractDependencyProvider

  • Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,105 โš–๏ธ - Guardians (admin)

    the AbstractDependencyProvider should likely have all what is needed for now

Welcome!

It looks like you're new here. Sign in or register to get started.