Skip to content

Instantly share code, notes, and snippets.

View weaverryan's full-sized avatar

Ryan Weaver weaverryan

View GitHub Profile
@weaverryan
weaverryan / AppKernel.php
Last active October 5, 2015 14:32
AppKernel with new loading
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
@weaverryan
weaverryan / UNSTUCK.md
Last active August 29, 2015 14:28
SummerCamp OO - Don't get stuck!

Are you stuck and not ready for the next step?

http://nooooooooooooooo.com

Actually, no problem! You can just skip up to the starting point of whatever we're working on right now.

For example, if you get stuck on "Register the PDO service", you can just move to the step03-register-pdo-service branch and keep coding along with us on the next step (all explained below).

@weaverryan
weaverryan / README.md
Last active August 29, 2015 14:28
SummerCamp OO Setup

Welcome to the OO workshop!

To get started, make sure everything is loading ok! If you're having any problems at all, just ask!

A) Start up the virtual machine! Here are the Virtual Machine Instructions

B) From the command line, ssh into the machine and move into our directory

@weaverryan
weaverryan / ProgrammerType.php
Created August 17, 2015 23:38
Symfony 2.7 OptionsResolver version of the is_edit option
<?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ProgrammerType extends AbstractType
@weaverryan
weaverryan / log.txt
Last active August 29, 2015 14:26
Symfony Dev Meeting 2015-07-30
[2015-07-30 11:03:11] <weaverryan> Ok, let's get started
[2015-07-30 11:03:35] <weaverryan> and of course, hi everyone - hope your summer's are interesting, etc etc :)
[2015-07-30 11:03:44] <fabpot> Hi everyone
[2015-07-30 11:03:46] → kbond joined (~quassel@207.107.125.114)
[2015-07-30 11:04:00] <weaverryan> Let's roll into the first topic:
[2015-07-30 11:04:12] <weaverryan> A) Deprecation triggering (nicolas-grekas)
[2015-07-30 11:04:19] <weaverryan> which relates to this comment: https://github.com/symfony/symfony-docs/pull/5413#discussion_r35309129
[2015-07-30 11:04:35] <weaverryan> nicolas-grekas: can you lead this discussion?
[2015-07-30 11:05:30] → javier_eguiluz joined (uid41340@gateway/web/irccloud.com/x-xlpvdnhlzgzldktw)
[2015-07-30 11:05:38] <nicolas-grekas> hello
@weaverryan
weaverryan / README.md
Created July 30, 2015 16:09
Symfony Core Meeting Summary July 30th, 2015

Deprecation Policy

Original conversation: symfony/symfony-docs#5413 (comment)

  • We agreed to trigger deprecation warnings immediately when something is deprecated, rather than waiting until a later version to "catch-up"
  • nicolas-greaks will open a small docs PR to mention how interface deprecation triggers work, since they - at the very least - befuddled weaverryan

PSR-7 Plan

@weaverryan
weaverryan / irc.txt
Created July 23, 2015 16:01
Docs Meeting Logs July 23rd, 2015
[2015-07-23 11:01:07] <weaverryan> o/ WouterJ, xabbuh
[2015-07-23 11:01:16] <xabbuh> hi Ryan
[2015-07-23 11:01:27] <weaverryan> I just messaged Javier to see if he'll be available
[2015-07-23 11:01:34] <WouterJ> hi weaverryan
[2015-07-23 11:02:05] <weaverryan> WouterJ: you've been busy with link checking and docs bot ;)
[2015-07-23 11:02:08] <weaverryan> How was your holiday?
[2015-07-23 11:02:21] → javier_eguiluz joined (uid41340@gateway/web/irccloud.com/x-otwovigfahjblrep)
[2015-07-23 11:02:42] <javier_eguiluz> hi :)
[2015-07-23 11:02:48] <WouterJ> weaverryan, very relaxing :)
[2015-07-23 11:03:13] <WouterJ> and yeah, I wanted link checking for a long time already (but didn't knew there was a built-in builder for that)
@weaverryan
weaverryan / random.php
Created July 9, 2015 13:10
Random string
<?php
/**
* Generates a random alphanumeric string
*
* @return string
*/
private static function generateOrderId()
{
// most characters, except those that look like others (e.g. o and 0)
{#
sizeClass: modal-lg or modal-sm
#}
{% macro renderModal(id, title, body, footer, sizeClass) %}
<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" id="{{ id }}">
<div class="modal-dialog {{ sizeClass|default }}">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
@weaverryan
weaverryan / README.md
Last active August 29, 2015 14:23
Symfony Docs Meetings
Date Topics URL
June 25th, 2015 workflow, platform.sh, linking to 3rd party bundles, improving forms, doctrine, security logs
July 23rd, 2015 new SE homepage, platform.sh theming, new quick tour! logs invite
Aug 20th, 2015 Meet us on #symfony-docs on IRC! meeting invite