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..

Hey my fellow devs, I hope everything is good! I wanted to ask if any of you worked on building an o

U020AR9ESHJ
U020AR9ESHJ Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet

Hey my fellow devs, I hope everything is good! I wanted to ask if any of you worked on building an open source package for spryker and had to deal with transfer objects during that development. If so, how can I generate them in the development of the package?

Comments

  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 πŸ§‘πŸ»β€πŸš€ - Cadet

    have a look at https://github.com/fond-of/spryker-google-tagmanager
    I guess you immediately integrate that package into your current Spryker project so that the xml file generates the transfer objects

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited July 2021

    Or have a look here: https://github.com/fond-of-oryx the above is mostly outdated

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 πŸ§‘πŸ»β€πŸš€ - Cadet

    but you also have to do some adjustments on project level so spryker will find everything

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 πŸ§‘πŸ»β€πŸš€ - Cadet

    Take a look on TransferConfig, TwigConfig, SearchElasticsearchConfig, RouterConfig, PropelConfig and KernelConfig

  • U020AR9ESHJ
    U020AR9ESHJ Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thank you! I just saw that the fond-of organization has a fond-of-codeception/spryker module that can create the transfer objects for you in isolation when you are writing tests and implementing the package

  • U020AR9ESHJ
    U020AR9ESHJ Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet

    that made the trick, it can also generate propel entities

  • U020AR9ESHJ
    U020AR9ESHJ Posts: 6 πŸ§‘πŸ»β€πŸš€ - Cadet
    modules:
      enabled:
        - \FondOfCodeception\Module\Spryker
      config:
        \FondOfCodeception\Module\Spryker:
          generate_transfer: true
          generate_map_classes: false
          generate_propel_classes: false
    
  • UK7KBE2JW
    UK7KBE2JW Posts: 463 πŸ§‘πŸ»β€πŸš€ - Cadet

    yeah for sure. Did not notice that you asked for how you can generate them for tests