Skip to content

Instantly share code, notes, and snippets.

View michaelcullum's full-sized avatar

Michael Cullum michaelcullum

View GitHub Profile
<?php
class test
{
protected $prop;
}
<nickvergessen> i guess just not requiring it atm
<nickvergessen> is the better solution
<nickvergessen> https://github.com/phpbb/phpbb/pull/2683
<MichaelC> a version of phpbb is a depdency of the extension
<MichaelC> i know about the pr, that's how i found out about it. ;)
<MichaelC> oh alternative?
<MichaelC> hm
<nickvergessen> but we dont want to have vendor/phpbb/phpbb in the ext :/
<MichaelC> we don't have to
<MichaelC> https://github.com/composer/installers/blob/master/src/Composer/Installers/PhpBBInstaller.php
<MichaelC> naderman: Is there no nicer syntax in composer than: `>=3.1.0-RC2@dev, <3.2.*` for anything in the 3.1.* branch >= 3.1.0-RC2?
--> VSE (~VSE@phpbb/extensions/vse-mattfriedman) has joined #phpBB-dev
*** Mode #phpBB-dev +o VSE by ChanServ
<naderman> MichaelC: "~3.1.0-RC2"
<MichaelC> Ah
<naderman> actually not sure if that works with the RC2 but should I think
<MichaelC> i thought that only applied to major versions
<MichaelC> i.e. 1.2 vs 2.0
<naderman> works at any level
<naderman> ~1.1.0 == 1.1.*, >= 1.1.0
wearthe_wearthe_internal_api:
path: /api/{locationType}/{location}/{gender}/{formality}/
defaults: { _controller: WeartheWeartheBundle:Default:index }
requirements:
locationType: 1|2
@michaelcullum
michaelcullum / ascraeusCommitLog.txt
Last active August 29, 2015 14:05
All the commits made to 3.1 (that aren't in develop-olympus).
This file has been truncated, but you can view the full file.
commit 6f129e99e70675db9f03e7a63b1fbf2ea9f1021c
Merge: 27e4f29 de819be
Author: MichaelC <m@michaelcullum.com>
Date: Tue Aug 12 22:25:08 2014 +0100
Merge tag 'release-3.1.0-RC3' into master-ascraeus
Tagging the 3.1.0-RC3 release.
commit de819bea74b962f1c520282b06928ef49353648b
Fatal error: Uncaught exception 'RuntimeException' with message 'You have specified an invalid dbms driver: ' in /phpbb/config_php_file.php:158
Stack trace:
#0 /phpbb/di/container_builder.php(312): phpbb\config_php_file->convert_30_dbms_to_31(NULL)
#1 /phpbb/di/container_builder.php(334): phpbb\di\container_builder->get_dbal_connection()
#2 /phpbb/di/container_builder.php(150): phpbb\di\container_builder->get_installed_extensions()
#3 /common.php(113): phpbb\di\container_builder->get_container()
@michaelcullum
michaelcullum / 1 phpBBBase template.json
Last active August 29, 2015 14:09
Inheritance with templates.json
{ // All are mapped to specific files inside this style
// phpBB Base
"faq_body": "@self:faq_body.html.twig",
"index_body": "@self:index_body.html.twig",
"report_body": "@self:report.html.twig",
"search_body": "@self:search/body.html.twig",
"search_results": "@self:search_results.html.twig",
"viewforum_body": "@self:viewforum.html.twig",
"viewonline_body": "@self:viewonline/body.html.twig"
}
<?php
namespace Phpbb\WebsiteInterfaceBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\TemplateController;
class StaticTemplateController extends TemplateController
{
public function staticTemplateAction($template, $maxAge = 86400, $sharedAge = 86400, $private = null)
{
return $this->templateAction($template, $maxAge, $sharedAge, $private);
@michaelcullum
michaelcullum / gist:bb05c5fa44692bcca8a7
Created January 28, 2015 16:09
Auto-generated (incorrect) subtitles for https://t.co/v46HPw3a0z by youtube
Auto-generated (incorrect and slightly funny) subtitles for https://t.co/v46HPw3a0z by youtube
0:04 I'm so how we will pay should be the next generation
0:07 I'm so her mind
0:10 and my name is Michael column I'm that's really ugly fighter main
0:13 and not as much richer and try and get help
0:16 I if you want to get my sights I'll be posting up into a trough to its
0:20 I'm seeing couples not I'm
0:23 so I work on a project called phpbb which has has a worse acronym to
0:28 pronounce ever
https://www.youtube.com/watch?v=iCg6t5iedEw incorrect transcript
0:00 but tanker I'm inside I for one flows you that don't know me my name is no up
0:05 in countries meet up strapped I
0:07 about 4-5 months now and the first meet up I went to was actually
0:12 casper's sad rabbits ok and so
0:16 also ask one spot by asking to find an application for a while
0:20 and so we gave a guy since we could find a use case for it
0:23 and then you have no but foolish label so trust quite
0:27 ego I tweeted miss I