• Software
  • Random
  • Reading
  • Life
  • Leadership
Jake LitwickiJake Litwicki
  • Blog
  • Library
  •  Goals
    • 2021 Goals
    • 2020 Goals
    • 2019 Goals
    • 2018 Goals
  • Woodworking
  • The MOAB

exception

Random

API environment contextual responses with Symfony3 Subscribers for Dev vs. Non-Dev

According to the ideal 12 Factor App you want to store your configuration in the specific environment. This includes debugging, logging, and everything else your application does. When building an API, these days you want your response data to be JSON, unless you’re an XML holdout which case you’re still using XML. Read more…

By Jake Litwicki, 4 years2 weeks ago
Random

Throw Exception based on Accept Header

Symfony has a wonderful onKernelException event that we can expose in an Event Listener to properly handle exceptions in our applications. In one particular use case, we want to handle JSON and XML responses for our exceptions that are thrown via our API. In this case, we need to format and Read more…

By Jake Litwicki, 6 years6 years ago
Related Posts
    Categories
    • Gaming
    • Leadership
    • Life
    • Random
    • Reading
    • Software
    • Woodworking

    jakelitwicki

    One more coat of paint and then we’re in busines One more coat of paint and then we’re in business! Building a cabinet/stand for our new fish tank.
    Load More... Follow on Instagram

    Jake LitwickiFollow

    Jake Litwicki
    jakelitwickiJake Litwicki@jakelitwicki·
    3h

    TIL about the "illusory truth effect" on my quest to understand. https://www.psychologicalscience.org/news/repeating-misinformation-doesnt-make-it-true-but-does-make-it-more-likely-to-be-believed.html

    Reply on Twitter 1350349324845080579Retweet on Twitter 1350349324845080579Like on Twitter 1350349324845080579Twitter 1350349324845080579
    jakelitwickiJake Litwicki@jakelitwicki·
    10h

    One more coat of paint and then we’re in business! Building a cabinet/stand for our new fish tank. @ Maple Valley, Washington https://www.instagram.com/p/CKFlrZQp9HO/?igshid=vdmkwfv39c26

    Reply on Twitter 1350252659031195650Retweet on Twitter 1350252659031195650Like on Twitter 13502526590311956503Twitter 1350252659031195650
    Load More...

    Jake Litwicki

    Jake Litwicki
    YouTube Video UCKJ_tutmLkhtArpgeQ0BlsA_B0nCIAdPHPw Side by side Razer Kiyo webcam and Canon T6i Rebel on Windows 10.
    Side by side Razer Kiyo webcam and Canon T6i Rebel on Windows 10.
    Webcam vs. DSLR
    YouTube Video UCKJ_tutmLkhtArpgeQ0BlsA_B0nCIAdPHPw
    Sometimes you just gotta dance
    YouTube Video UCKJ_tutmLkhtArpgeQ0BlsA_o2S682vAze8
    Load More... Subscribe

    • Curriculum Vitae
    • 2019 Goals
    • Blog
    The thoughts and opinions shared on jakelitwicki.com are purely my own.