<?php

/**
 * Plugin Name: Digster
 * Description: Twig templates for WordPress
 * Author: Fredrik Forsmo
 * Author URI: https://forsmo.me/
 * Plugin URI: https://github.com/frozzare/digster
 * Text Domain: digster
 * Version: 1.2.1
 */

// Make sure the plugin does not expose any info if called directly
defined( 'ABSPATH' ) || exit;

// Digster requires PHP 5.4 or newer
if ( version_compare( PHP_VERSION, '5.4.0', '<' ) ) {
    exit( 'The Digster plugin for WordPress requires PHP version 5.4 or higher.' );
}

// Load Composer autoloader.
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
    require __DIR__ . '/vendor/autoload.php';
}

register_wp_autoload( 'Digster\\', __DIR__ . '/src' );

/**
 * Load Digster plugin.
 *
 * @return \Digster\Plugin_Loader
 */

add_action( 'plugins_loaded', function () {
    return \Digster\Plugin_Loader::instance();
} );

<?php

/**
 * Plugin Name: Digster
 * Description: Twig templates for WordPress
 * Author: Fredrik Forsmo
 * Author URI: https://forsmo.me/
 * Plugin URI: https://github.com/frozzare/digster
 * Text Domain: digster
 * Version: 1.2.1
 */

// Make sure the plugin does not expose any info if called directly
defined( 'ABSPATH' ) || exit;

// Load Composer autoloader.
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
    require __DIR__ . '/vendor/autoload.php';
}

register_wp_autoload( 'Digster\\', __DIR__ . '/src' );

/**
 * Load Digster plugin.
 *
 * @return \Digster\Plugin_Loader
 */

add_action( 'plugins_loaded', function () {
    return \Digster\Plugin_Loader::instance();
} );

Remove PHP 5.4 notice since Digster is installed with composer
Remove PHP 5.4 notice since Digster is installed with composer
