Skip to content

Instantly share code, notes, and snippets.

View weaverryan's full-sized avatar

Ryan Weaver weaverryan

View GitHub Profile
@weaverryan
weaverryan / log.txt
Created June 25, 2015 16:16
June 25th, 2015 Symfony Docs Meeting
-06-25 10:59:33] <weaverryan> o/ everyone!
[2015-06-25 10:59:55] <javier_eguiluz> hi :)
[2015-06-25 11:00:01] <weaverryan> I meant to email a proposed topic list... but I'm suddenly babysitting a 2 year old today :)
[2015-06-25 11:00:38] <weaverryan> Here are 4 topics (some may not need much discussion) that I had in mind from previous conversations and emails:
[2015-06-25 11:00:42] <WouterJ> hi Ryan and Javier (and xabbuh!)
[2015-06-25 11:00:46] <weaverryan> A) docs workflow
[2015-06-25 11:00:46] <weaverryan> B) auto-deploy platform.sh
[2015-06-25 11:00:46] <weaverryan> C) linking to more 3rd party bundles
[2015-06-25 11:00:46] <weaverryan> D) fixing forms, doctrine, security
[2015-06-25 11:01:26] <xabbuh> hi :)
@weaverryan
weaverryan / README.md
Last active April 28, 2020 14:07
Symfony Core Meeting Logs
Date Topics URL Summary
May 21st, 2015 core team organization, issue tagging/organization, PSR-7 logs --
June 4th, 2015 PSR-HttpFoundation, DI-PSR, issue triaging/organization, meeting organization logs --
June 18th, 2015 workflow/notifications, removing forums/ML, 3.0 changes - templating logs --
July 2nd, 2015 issues bot / HttpFoundation PSR-7 / dropping templating / new SE structure/ config component split / HttpKernel split logs summary
July 16th, 2015 issues bot / updates on initiatives / closing old issues logs --
July 30th, 2015 deprecatio
@weaverryan
weaverryan / logs.txt
Created June 18, 2015 16:36
Symfony Core Meeting May 21
[2015-05-21 10:58:10] <weaverryan> Hey everyone :) - we'll begin in exactly 2 minutes
[2015-05-21 10:58:51] <Iltar> Heya Ryan, welcome to those that are usually not lurking in this area :D
[2015-05-21 10:59:04] <WouterJ> afternoon everyone :)
[2015-05-21 10:59:34] → MaxVandervelde joined (~Maxwell@173-8-114-13-Minnesota.hfc.comcastbusiness.net)
[2015-05-21 11:00:13] <weaverryan> Ok! Welcome
[2015-05-21 11:00:22] <weaverryan> The format today will be 3 topics: 20 minutes each
[2015-05-21 11:00:24] <fabpot> Hi everyone!
[2015-05-21 11:00:36] <jakubzalas1> hi
[2015-05-21 11:00:38] <nicolasgrekas> Hello!
[2015-05-21 11:00:39] <ewgra> hi
@weaverryan
weaverryan / README.md
Last active August 29, 2015 14:23
webmozart workflow
  1. A team (I'll call it the "Label Team" here) is responsible for marking new issues/PRs with:
  • the label for the component, like "Serializer"
  • the labels "Bug" for bug reports
  • the label "Feature" for feature requests
  • the label "Enhancement" for smaller enhancements of existing features (idea: less work than "Feature" tickets)

At the beginning, the Label Team is the core team, but is slowly replaced by other community members (see below).

  1. A bot automatically marks new PRs and new tickets with the "Bug" label with the label "Needs Review"
@weaverryan
weaverryan / Application.php
Created June 15, 2015 17:59
Updated Application.php for ApiProblem on HTTP Basic
<?php
namespace KnpU\CodeBattle;
// ...
class Application extends SilexApplication
{
// ...
@weaverryan
weaverryan / page_creation.rst
Created June 11, 2015 14:52
Removed from "page creation" on update

Autoloading

When Symfony is loading, a special file - vendor/autoload.php - is included. This file is created by Composer and will autoload all application files living in the src/ folder as well as all third-party libraries mentioned in the composer.json file.

Because of the autoloader, you never need to worry about using include

@weaverryan
weaverryan / DefaultController.php
Created May 28, 2015 16:38
Creating a Symfony form with a country drop-down
<?php
class DefaultController
{
public function someAction(Request $request)
{
$form = $this->createFormBuilder()
->add('the_countries', 'country')
->getForm();
@weaverryan
weaverryan / notes.md
Last active August 29, 2015 14:21
Symfony Core Meeting Topics

05/21

  • core team organization (Fabien)
  • issue tagging / organization / issue/PR triaging (Jakub and Nicolas)
  • PSR-7 implementation plan (everyone)

Future

  • splitting some components into own repos/cycle (Jordi)
  • introducing multiple framework distributions (Ryan)
@weaverryan
weaverryan / PostController1.php
Created May 8, 2015 15:31
Possible Doctrine Param Converter
<?php
class PostController
{
/**
* @Route("/posts/{slug}")
* @DoctrineParam("post", expr="repository.findOneBySlug(slug)")
*/
public function showAction(Post $post)
{
@weaverryan
weaverryan / Controller.php
Created April 21, 2015 17:22
Collecting Form Errors
<?php
// put this in your controller
protected function getErrorsFromForm(FormInterface $form)
{
$errors = array();
foreach ($form->getErrors() as $error) {
$errors[] = $error->getMessage();
}