Skip to content

[Workflow] Allow using public properties for the marking store #18658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

alexandre-daubois
Copy link
Member

Fix #18656

@lyrixx
Copy link
Member

lyrixx commented Aug 1, 2023

Can you add a note about the context: Context is not supported with property.

So, if one want to use the context, they must use a public method.

But the following code works:

class S
{

  public $marking; // Used for reading
  private $context;

  public function setMarking($marking, $context) { // used for setting 
     ...
  }
}

@alexandre-daubois
Copy link
Member Author

Pushed a new version, what do you think? 🙂

Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect 💛
Thank you so much for all your contributions 😍

workflow.rst Outdated
{
$this->currentPlace = $currentPlace;
}
}

.. tip::
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can use a regular paragraph here, it is too long for a tip IMHO

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, updated 🙂

@javiereguiluz javiereguiluz merged commit 302d1a6 into symfony:6.4 Aug 1, 2023
@javiereguiluz
Copy link
Member

Another great combo of nice feature + nice contribution + nice review. Thank you all!

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

Successfully merging this pull request may close these issues.

[Workflow] Add support for storing the marking in a property
5 participants